mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
feat(functions:server): New hook for getting phone number from identifier | not done
This commit is contained in:
1 parent
29686b9b06
commit
0d966a0e10
1 file changed
+2
-4
@@ -1,9 +1,7 @@
|
||||
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
|
||||
const phoneNumber = await pool.query(query, [identifier]);
|
||||
return phoneNumber;
|
||||
}
|
||||
Reference in new issue
Block a user