Merge branch 'fix/warnings-and-call-timer' of https://github.com/project-error/new-phone-who-dis into fix/warnings-and-call-timer

This commit is contained in:
Christopher committed 2021-02-07 02:03:19 +01:00
commit 10a8d792d8
1 file changed
+7 -2
+7 -2
View File
@@ -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) {