feat(notifications): wire pruneDeadTokens into sendGentleReminderCallable

This commit is contained in:
null 2026-06-30 23:35:59 -05:00
parent e35b8151c6
commit 5306d40c72
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import * as functions from 'firebase-functions'
import * as admin from 'firebase-admin'
import { pruneDeadTokens } from './pruneTokens'
const GENTLE_REMINDER_MAX_PER_HOUR = 5
const GENTLE_REMINDER_WINDOW_MS = 60 * 60 * 1000 // 1 hour
@ -186,6 +187,8 @@ export const sendGentleReminderCallable = functions.https.onCall(async (_data, c
)
}
})
await pruneDeadTokens(db, partnerId, tokens, sendResults)
}
console.log(