HackerTrans
TopNewTrendsCommentsPastAskShowJobs

fedlarm

no profile record

comments

fedlarm
·vor 9 Monaten·discuss
You could write the logic in a more straight forward, but less composable way, so that all the logic resides in one pure function. This way you can also keep the code to only loop over the users once.

email.sendBulk(generateExpiryEmails(db.getUsers(), Date.now()));