Skip to content
Snippets Groups Projects
Commit c4454414 authored by Yogmatee Roochun's avatar Yogmatee Roochun
Browse files

manuscript data-access modified

parent 8ccb76af
No related branches found
No related tags found
2 merge requests!116Shared data model,!117Dev
......@@ -521,27 +521,6 @@ class Manuscript extends EpmcBaseModel {
.returning('*')
}
static async updateErrorMsg(id, errorMsg) {
const manuscriptUpdated = await Manuscript.query()
.patch({ formState: errorMsg, status: 'xml-triage' })
.where('id', id)
return manuscriptUpdated
}
static async updatePdfDepositState(id) {
const manuscriptUpdated = await Manuscript.query()
.patch({ pdfDepositState: 'WAITING_FOR_PDF_CONVERSION' })
.where('id', id)
return manuscriptUpdated
}
static async clearFormState(id) {
const manuscriptUpdated = await Manuscript.query()
.patch({ formState: '' })
.where('id', id)
return manuscriptUpdated
}
static async isAdmin(user) {
const Team = require('../team/')
const roles = await Team.selectByUserId(user)
......
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