Commit 1ec4c4f9 authored by Audrey Hamelers's avatar Audrey Hamelers

Merge branch 'dev' into 'master'

#395

See merge request !184
parents 3ac7a533 d150f8d7
Pipeline #13028 passed with stages
in 1 minute and 3 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