mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
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:
commit
10a8d792d8
1 file changed
+7
-2
@@ -37,8 +37,13 @@ async function getPlayerFromIdentifier(identifier: string): Promise<XPlayer> {
|
|||||||
|
|
||||||
async function saveCall(call: ICall) {
|
async function saveCall(call: ICall) {
|
||||||
const query =
|
const query =
|
||||||
'INSERT INTO npwd_calls (transmitter, receiver, start) VALUES (?, ?, ?)';
|
'INSERT INTO npwd_calls (identifier, transmitter, receiver, start) VALUES (?, ?, ?, ?)';
|
||||||
await pool.query(query, [call.transmitter, call.receiver, call.start]);
|
await pool.query(query, [
|
||||||
|
call.identifier,
|
||||||
|
call.transmitter,
|
||||||
|
call.receiver,
|
||||||
|
call.start,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateCall(call: ICall, isAccepted: boolean, end: number) {
|
async function updateCall(call: ICall, isAccepted: boolean, end: number) {
|
||||||
|
|||||||
Reference in new issue
Block a user