mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
wip
This commit is contained in:
@@ -159,7 +159,8 @@ const nudgeCallCounts = async(logger, sids, nudgeOperator, writers, direction) =
|
||||
const {addKey, deleteKey} = srf.locals.realtimeDbHelpers;
|
||||
|
||||
if (direction > 0) {
|
||||
await addKey(`debug:incalls:${account_sid}:${callId}`, new Date().toISOString());
|
||||
// save for 3 days
|
||||
await addKey(`debug:incalls:${account_sid}:${callId}`, new Date().toISOString(), 259200);
|
||||
}
|
||||
else {
|
||||
await deleteKey(`debug:incalls:${account_sid}:${callId}`);
|
||||
|
||||
Reference in New Issue
Block a user