Feat(Functions:Server): File for adding useful server functions

This commit is contained in:
chip committed 2020-10-18 21:58:28 +02:00
1 parent 12c3646d74
commit f9dbcd1394
1 file changed
+9
+9
View File
@@ -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
}