Commit 6e2828a7 authored by nickstiffler's avatar nickstiffler Committed by Yannis Barlas
Browse files

Reviewer jobs fixes

parent 64f8875c
......@@ -14,10 +14,11 @@ const remindReviewerJob = async ({
userId,
versionId,
}) => {
const days = isAccepted ? 3 : 5
try {
deferJobByDays(5, name, job => {
deferJobByDays(days, name, job => {
notify('remindReviewer', {
isAccepted: true,
isAccepted,
userId,
versionId,
})
......@@ -42,8 +43,8 @@ const revokeInvitationJob = async ({ name, teamMemberId, versionId }) => {
.throwIfNotFound()
// send email to reviewer
// send email to editors
// notify('invitationRevoked', {})
// TODO: send email to editors
notify('revokeInvitation', { teamMemberId, versionId })
// run automation
const version = await ManuscriptVersion.query().findById(versionId)
......
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