mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
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:
1 parent
f6395e4b8e
commit
104fda2c11
10 files changed
+22
-28
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user