feat(couples): wire pruneDeadTokens into scheduledOutcomesReminder
This commit is contained in:
parent
c32a5ad8cc
commit
342ca37e91
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue