feat(global): major fixes...i dont even know that to call this commit so ill just say its global. Who even cares

This commit is contained in:
Dillon Skaggs authored and GitHub committed 2021-07-06 23:10:47 +02:00
1 parent f6395e4b8e
commit 104fda2c11
10 files changed
+22 -28

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export class PlayerRepo {
const query = `SELECT ${config.database.identifierColumn} FROM ${config.database.playerTable} WHERE phone_number = ?`;
const [results] = await pool.query(query, [phoneNumber]);
// Get identifier from results
return (results as { identifier: string }[])[0].identifier || null;
return (results as any[])[0][config.database.identifierColumn] || null;
}
}
@@ -129,6 +129,7 @@ class _PlayerService {
playerLogger.info('NPWD Player Loaded!');
playerLogger.debug(newPlayer);
emitNet(PhoneEvents.ON_INIT, pSource);
}
/**