mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(resources/calls): invalid sql syntax
This commit is contained in:
1 parent
892acd2f59
commit
f626d1b0ce
1 file changed
+3
-3
@@ -41,9 +41,9 @@ async function saveCall(call: ICall) {
|
|||||||
await pool.query(query, [call.transmitter, call.receiver, call.start]);
|
await pool.query(query, [call.transmitter, call.receiver, call.start]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateCall(call: ICall, isAccepted: boolean, end?: number) {
|
async function updateCall(call: ICall, isAccepted: boolean, end: number) {
|
||||||
const query =
|
const query =
|
||||||
'UPDATE npwd_calls SET is_accepted, end (?, ?) WHERE identifier = ?';
|
'UPDATE npwd_calls SET is_accepted=?, end=? WHERE identifier = ?';
|
||||||
await pool.query(query, [isAccepted, end, call.identifier]);
|
await pool.query(query, [isAccepted, end, call.identifier]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ onNet(events.PHONE_ACCEPT_CALL, async (transmitterNumber: string) => {
|
|||||||
const currentCall = calls.get(transmitterNumber);
|
const currentCall = calls.get(transmitterNumber);
|
||||||
const channelId = pSource;
|
const channelId = pSource;
|
||||||
|
|
||||||
await updateCall(currentCall, true);
|
await updateCall(currentCall, true, null);
|
||||||
|
|
||||||
// player who is being called
|
// player who is being called
|
||||||
emitNet(
|
emitNet(
|
||||||
|
|||||||
Reference in new issue
Block a user