mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
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:
1 parent
1801255c04
commit
7fd02913da
2 files changed
+14
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user