mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
wip
This commit is contained in:
@@ -149,7 +149,7 @@ const nudgeCallCounts = async(logger, sids, nudgeOperator, writers, direction) =
|
||||
|
||||
try {
|
||||
const [callsSP, calls, callsApp] = await Promise.all(nudges);
|
||||
logger.debug({
|
||||
logger.info({
|
||||
calls, callsSP, callsApp,
|
||||
service_provider_sid, account_sid, application_sid
|
||||
}, `call counts after ${direction > 0 ? 'increment' : 'decrement'}`);
|
||||
@@ -159,7 +159,7 @@ const nudgeCallCounts = async(logger, sids, nudgeOperator, writers, direction) =
|
||||
const {addKey, deleteKey} = srf.locals.realtimeDbHelpers;
|
||||
|
||||
if (direction > 0) {
|
||||
await addKey(`debug:incalls:${account_sid}:${callId}`, Date.now());
|
||||
await addKey(`debug:incalls:${account_sid}:${callId}`, new Date().toISOString());
|
||||
}
|
||||
else {
|
||||
await deleteKey(`debug:incalls:${account_sid}:${callId}`);
|
||||
|
||||
Reference in New Issue
Block a user