3 ms·
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 th
by fedlarm 11mo ago
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()));