Skip to content

Commit

Permalink
Merge pull request #568 from Hylozoic/559-fix-daily-digests
Browse files Browse the repository at this point in the history
Fix bug in sending daily digests
  • Loading branch information
tibetsprague authored Dec 6, 2020
2 parents 0a9837f + 198348f commit fc5f289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const savedSearches = require('./lib/community/digest2/savedSearches')

const sendAndLogDigests = type =>
digest2.sendAllDigests(type)
.tap(results => sails.log.debug(`Sent digests to: ${results}`))
.then(results => { sails.log.debug(`Sent digests to: ${results}`); return results })

const sendSavedSearchDigests = userId =>
savedSearches.sendAllDigests(userId)

const resendInvites = () =>
Invitation.resendAllReady()
.tap(results => sails.log.debug(`Resent the following invites: ${results}`))
.then(results => { sails.log.debug(`Resent the following invites: ${results}`); return results })

// Currently Nexudus updates are disabled
// const updateFromNexudus = opts =>
Expand Down

0 comments on commit fc5f289

Please sign in to comment.