Skip to content

Commit

Permalink
fix save last time sent
Browse files Browse the repository at this point in the history
  • Loading branch information
MixailE committed Nov 8, 2023
1 parent 0a7b155 commit 2097244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/sendFirebaseNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default async function ({
const token = chunk[index]
if (response.success) {
console.log(response)
await storeLastTimeSent(Date.now())
successful += 1
return
}
Expand Down Expand Up @@ -111,6 +110,7 @@ export default async function ({
{ token: { $in: tokensToDelete } },
{ expired: true }
)
await storeLastTimeSent(Date.now())
} catch (e) {
console.error(e)
}
Expand Down

0 comments on commit 2097244

Please sign in to comment.