feat(functions:server): New hook for getting phone number from identifier | not done

This commit is contained in:
chip committed 2020-10-20 00:48:16 +02:00
1 parent 29686b9b06
commit 0d966a0e10
1 file changed
+2 -4
+2 -4
View File
@@ -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;
}