Commit bc1226d7 authored by Audrey Hamelers's avatar Audrey Hamelers
parent 799e8ad2
Pipeline #13023 passed with stages
in 5 minutes and 33 seconds
......@@ -23,7 +23,7 @@ async function alertIncomplete() {
const incomplete = await Manuscript.query()
.whereIn('status', ['INITIAL', 'READY'])
.whereRaw(
'"updated"::date = current_date - interval \'1 day\' or "updated"::date = current_date - interval \'7 days\'',
'("updated"::date = current_date - interval \'1 day\' or "updated"::date = current_date - interval \'7 days\')',
)
.whereNull('manuscript.deleted')
.eager('[teams.users.identities]')
......@@ -67,7 +67,7 @@ async function alertStalled() {
const stalled = await Manuscript.query()
.whereIn('status', ['in-review', 'xml-review'])
.whereRaw(
'"updated"::date = current_date - interval \'1 week\' or "updated"::date = current_date - interval \'2 weeks\'',
'("updated"::date = current_date - interval \'1 week\' or "updated"::date = current_date - interval \'2 weeks\')',
)
.whereNull('manuscript.deleted')
.eager('[notes, teams.users.identities]')
......@@ -135,7 +135,7 @@ async function alertNeedFix() {
const needFix = await Manuscript.query()
.where('status', 'submission-error')
.whereRaw(
'"updated"::date = current_date - interval \'1 week\' or "updated"::date = current_date - interval \'2 weeks\'',
'("updated"::date = current_date - interval \'1 week\' or "updated"::date = current_date - interval \'2 weeks\')',
)
.whereNull('manuscript.deleted')
.eager('[notes, teams.users.identities]')
......
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