Skip to content
Snippets Groups Projects

Hin 1166 admin delete manuscript

Merged Tania Fecheta requested to merge HIN-1166-admin-delete-manuscript into develop
All threads resolved!
1 file
+ 3
6
Compare changes
  • Side-by-side
  • Inline
@@ -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')