Skip to content
Snippets Groups Projects
Commit a2781e60 authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

fix(components): review backend remove revs

parent cbb8e82f
No related branches found
No related tags found
No related merge requests found
......@@ -18,14 +18,14 @@ module.exports = app => {
const canViewVersion = await authsome.can(req.user, 'GET', version)
const canPatchVersion = await authsome.can(req.user, 'PATCH', version)
if (!canPatchVersion || !canViewVersion) throw new AuthorizationError()
let versionUpdateData = { rev: version.rev, decision: req.body.decision }
let versionUpdateData = { decision: req.body.decision }
if (canPatchVersion.filter) {
versionUpdateData = canPatchVersion.filter(versionUpdateData)
}
await version.updateProperties(versionUpdateData)
let nextVersionData
let projectUpdateData = { rev: project.rev }
let projectUpdateData = {}
let message
switch (version.decision.recommendation) {
case 'accept':
......
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