mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
fix(resources/calls): Fixed save call not saving identifier
This commit is contained in:
1 parent
f626d1b0ce
commit
1ac3d89f59
1 file changed
+7
-2
@@ -37,8 +37,13 @@ async function getPlayerFromIdentifier(identifier: string): Promise<XPlayer> {
|
||||
|
||||
async function saveCall(call: ICall) {
|
||||
const query =
|
||||
'INSERT INTO npwd_calls (transmitter, receiver, start) VALUES (?, ?, ?)';
|
||||
await pool.query(query, [call.transmitter, call.receiver, call.start]);
|
||||
'INSERT INTO npwd_calls (identifier, transmitter, receiver, start) VALUES (?, ?, ?, ?)';
|
||||
await pool.query(query, [
|
||||
call.identifier,
|
||||
call.transmitter,
|
||||
call.receiver,
|
||||
call.start,
|
||||
]);
|
||||
}
|
||||
|
||||
async function updateCall(call: ICall, isAccepted: boolean, end: number) {
|
||||
|
||||
Reference in new issue
Block a user