This commit is contained in:
Dave Horton
2025-01-10 19:21:14 -05:00
parent dd2a4fead5
commit 5438f4e147

View File

@@ -159,7 +159,8 @@ const nudgeCallCounts = async(logger, sids, nudgeOperator, writers, direction) =
const {addKey, deleteKey} = srf.locals.realtimeDbHelpers; const {addKey, deleteKey} = srf.locals.realtimeDbHelpers;
if (direction > 0) { 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 { else {
await deleteKey(`debug:incalls:${account_sid}:${callId}`); await deleteKey(`debug:incalls:${account_sid}:${callId}`);