mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +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 { pool } from './db';
|
||||||
import { ESX, getSource } from './server';
|
|
||||||
|
|
||||||
export const usePhoneNumber = async (identifier: string) => {
|
export const usePhoneNumber = async (identifier: string) => {
|
||||||
const query = "SELECT phone_number FROM users WHERE identifier = ?"
|
const query = "SELECT phone_number FROM users WHERE identifier = ?"
|
||||||
const result = await pool.query(query, [identifier]);
|
const phoneNumber = await pool.query(query, [identifier]);
|
||||||
|
return phoneNumber;
|
||||||
return result
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user