Skip to content
Snippets Groups Projects
Commit 20b36f9b authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'master' of gitlab.coko.foundation:xpub/xpub-faraday

parents 9630fa0a c634e976
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ module.exports = {
collection,
)
}
matchingInvitation.timestamp = Date.now()
await collection.save()
return matchingInvitation
},
addAuthor: async (collection, user, res, url) => {
......@@ -47,6 +49,7 @@ module.exports = {
updateHandlingEditor: async (collection, isAccepted) => {
collection.handlingEditor.hasAnswer = true
collection.handlingEditor.isAccepted = isAccepted
collection.handlingEditor.timestamp = Date.now()
await collection.save()
},
}
......@@ -29,6 +29,7 @@ module.exports = models => async (req, res) => {
}
await collectionHelper.updateHandlingEditor(collection, isAccepted)
invitation.timestamp = Date.now()
invitation.hasAnswer = true
const eic = await userHelper.getEditorInChief(models.User)
if (isAccepted === true) {
......
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