Skip to content

Commit

Permalink
Add subscribers count to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed0saber committed May 2, 2024
1 parent 1e6b0b6 commit 6ba381e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/api/notify-users/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export async function GET(request) {
getSubscribersTimeTaken: `${getSubscribersTimeTaken}ms`,
sendEmailsTimeTaken: `${sendEmailsTimeTaken}ms`,
totalTimeTaken: `${totalTimeTaken}ms`,
service: "NotifyUsers"
service: "NotifyUsers",
subscribersCount: subscribers.length,
}
await logToDatabase(detailsToBeLogged)
logToConsole(detailsToBeLogged)
Expand Down

0 comments on commit 6ba381e

Please sign in to comment.