feat(notifications): wire pruneDeadTokens into sendGentleReminderCallable
This commit is contained in:
parent
e35b8151c6
commit
5306d40c72
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue