fix(server): Fix server's referencing old player system

This commit is contained in:
Taso committed 2021-04-18 15:38:51 -04:00
1 parent 51b5620866
commit 2dafbcc13f
8 files changed
+60 -52

No files matched your search

+3 -2
View File
@@ -1,7 +1,8 @@
import { pool } from './db';
import { getIdentifier, getSource } from './functions';
import { mainLogger } from './sv_logger';
import { PhoneEvents } from '../../typings/phone';
import PlayerService from './players/player.service';
import { getSource } from './utils/miscUtils';
interface Credentials {
phone_number: string;
@@ -18,7 +19,7 @@ async function getCredentials(identifier: string): Promise<string> {
onNet('phone:getCredentials', async () => {
const _source = getSource();
try {
const identifier = getIdentifier(_source);
const identifier = PlayerService.getIdentifier(_source);
const number = await getCredentials(identifier);
emitNet(PhoneEvents.SEND_CREDENTIALS, _source, number);
} catch (e) {