mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(resources): set number as keytype for Players map
This commit is contained in:
1 parent
a424a67f05
commit
de53b12763
2 files changed
+3
-9
No files matched your search
@@ -2,10 +2,6 @@ import { IPlayer } from '../typings/players';
|
||||
import { pool } from './db';
|
||||
import { Players } from './sv_main';
|
||||
|
||||
interface IPhoneNumber {
|
||||
phone_number: string;
|
||||
}
|
||||
|
||||
interface Identifier {
|
||||
identifier: string;
|
||||
}
|
||||
@@ -49,7 +45,7 @@ export async function getIdentifierByPhoneNumber(phoneNumber: string): Promise<s
|
||||
return identifier[0].identifier;
|
||||
}
|
||||
|
||||
export const getPlayerBySource = (source: any) => {
|
||||
export const getPlayerBySource = (source: number) => {
|
||||
return Players.get(source);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user