feat(resources): set number as keytype for Players map

This commit is contained in:
Christopher committed 2021-03-08 22:53:00 +01:00
1 parent a424a67f05
commit de53b12763
2 files changed
+3 -9

No files matched your search

+1 -5
View File
@@ -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);
};