mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 14:38:46 +00:00
7 lines
247 B
TypeScript
7 lines
247 B
TypeScript
import { pool } from './db';
|
|
|
|
export const usePhoneNumber = async (identifier: string) => {
|
|
const query = "SELECT phone_number FROM users WHERE identifier = ?"
|
|
const phoneNumber = await pool.query(query, [identifier]);
|
|
return phoneNumber;
|
|
} |