Commit a5736fac authored by antoine masson's avatar antoine masson
Browse files

v1.12

Fix poc empty in surveymodel
parent 42ba120e
......@@ -250,7 +250,12 @@ SurveySchema.virtual('poc').get(async function() {
let poc = this.general.poc
if (this.general.poc.useglobal){
const opt = await GlobalOptions.findById(0,{poc:1});
poc = opt.poc;
if(opt.poc){
poc = opt.poc;
} else {
poc = null
}
}
return poc
});
......
{
"name": "api",
"version": "1.1.1",
"version": "1.1.2",
"description": "",
"main": "index.js",
"scripts": {
......
Supports Markdown
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