Revert "tweak(server/player): Added regex replace to getIdentifierByPhoneNumber"

Reverted as to ensure current compatibility with messages app, messages
should be altered to deal with this in the future.

This reverts commit 258ea66746.
This commit is contained in:
Taso committed 2021-03-10 21:27:21 -05:00
1 parent 1801255c04
commit 7fd02913da
2 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ export async function getIdentifierByPhoneNumber(
}
// Whether we fetch from database if not found in online players
if (fetch) {
const query = `SELECT identifier FROM users WHERE phone_number = ?`
const query = `SELECT identifier FROM users WHERE phone_number = ?`;
const [results] = await pool.query(query, [phoneNumber]);
// Get identifier from results
return (results as { identifier: string }[])[0].identifier;