feat(couples): wire pruneDeadTokens into scheduledOutcomesReminder

This commit is contained in:
null 2026-06-30 23:34:39 -05:00
parent c32a5ad8cc
commit 342ca37e91
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import * as functions from 'firebase-functions'
import * as admin from 'firebase-admin'
import { recipientInQuietHours } from '../notifications/quietHours'
import { pruneDeadTokens } from '../notifications/pruneTokens'
/**
* Cloud Function: scheduledOutcomesReminder
@ -153,6 +154,8 @@ async function sendOutcomeReminder(
)
}
})
await pruneDeadTokens(db, notification.userId, tokens, sendResults)
}
async function getUserTokens(