Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Merge requests
!198
Hin 1166 admin delete manuscript
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hin 1166 admin delete manuscript
HIN-1166-admin-delete-manuscript
into
develop
Overview
9
Commits
19
Pipelines
0
Changes
15
All threads resolved!
Hide all comments
Merged
Tania Fecheta
requested to merge
HIN-1166-admin-delete-manuscript
into
develop
6 years ago
Overview
9
Commits
19
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
3
0
Merge request reports
Viewing commit
c64f1e61
Prev
Next
Show latest version
1 file
+
3
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c64f1e61
refactor(collection/patch): remove duplcate code and unnecesary code
· c64f1e61
Tania Fecheta
authored
6 years ago
packages/component-manuscript-manager/src/routes/collections/patch.js
+
3
−
6
Options
@@ -35,12 +35,9 @@ module.exports = models => async (req, res) => {
})
}
if
(
collectionStatus
)
{
collection
.
status
=
'
deleted
'
await
collection
.
save
()
const
collectionHelper
=
new
Collection
({
collection
})
collectionHelper
.
updateStatus
({
newStatus
:
'
deleted
'
})
}
const
collectionHelper
=
new
Collection
({
collection
})
await
collectionHelper
.
updateStatus
({
newStatus
:
'
deleted
'
})
return
res
.
status
(
200
).
json
(
collection
)
}
catch
(
e
)
{
const
notFoundError
=
await
services
.
handleNotFoundError
(
e
,
'
Collection
'
)