mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Functions:Server): File for adding useful server functions
This commit is contained in:
1 parent
12c3646d74
commit
f9dbcd1394
1 file changed
+9
@@ -0,0 +1,9 @@
|
||||
import { pool } from './db';
|
||||
import { ESX, getSource } from './server';
|
||||
|
||||
export const usePhoneNumber = async (identifier: string) => {
|
||||
const query = "SELECT phone_number FROM users WHERE identifier = ?"
|
||||
const result = await pool.query(query, [identifier]);
|
||||
|
||||
return result
|
||||
}
|
||||
Reference in new issue
Block a user