mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(calling/client|server): partical functions for calling
Should probably reuse data
This commit is contained in:
1 parent
c12b0ba126
commit
77c7cc303e
8 files changed
+133
-56
No files matched your search
@@ -5,7 +5,7 @@ interface IPhoneNumber {
|
||||
phone_number: string;
|
||||
}
|
||||
|
||||
interface Iidentifier {
|
||||
interface Identifier {
|
||||
identifier: string;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ export async function getIdentifierByPhoneNumber(
|
||||
): Promise<string> {
|
||||
const query = 'SELECT identifier FROM users WHERE phone_number = ?';
|
||||
const [results] = await pool.query(query, [phoneNumber]);
|
||||
const identifier = <Iidentifier[]>results;
|
||||
const identifier = <Identifier[]>results;
|
||||
return identifier[0].identifier;
|
||||
}
|
||||
Reference in new issue
Block a user