Commit d150f8d7 authored by Audrey Hamelers's avatar Audrey Hamelers
parent 7df7478a
Pipeline #13027 passed with stages
in 5 minutes and 43 seconds
......@@ -27,11 +27,12 @@ async function taggingAlert() {
.joinRelation('manuscript')
.whereNull('manuscript.deleted')
.distinct('a.manuscriptId')
logger.info(`${tagging.length} manuscripts sent to tagging yesterday.`)
if (tagging.length > 0) {
logger.info('Sending tagging count email.')
await sendMessage(tagging)
return true
}
logger.info('No manuscripts sent to tagging yesterday.')
} catch (e) {
logger.error(`Unable to get or send tagging count: ${e}`)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment