mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(server): Fix server's referencing old player system
This commit is contained in:
1 parent
25a629a59b
commit
93fd955ae9
8 files changed
+60
-52
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user