Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swing-webapp
api
Commits
eb980bf0
Commit
eb980bf0
authored
Apr 09, 2021
by
antoine masson
Browse files
v1.01
-Fix bug in survey poc - New translation
parent
81fa2bf7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
controllers/SurveyController.js
View file @
eb980bf0
...
...
@@ -528,7 +528,8 @@ exports.getSurveykey = async (req, res) => {
exports
.
getSurveyInfo
=
async
(
req
,
res
)
=>
{
try
{
const
survey
=
await
Survey
.
findById
(
req
.
userData
.
survey_id
);
const
survey
=
await
Survey
.
findById
(
req
.
userData
.
survey_id
);
const
poc
=
await
survey
.
poc
let
surveygeneral
=
survey
.
general
;
let
languages
=
[]
...
...
@@ -542,8 +543,7 @@ exports.getSurveyInfo= async (req, res) => {
// const opt = await GlobalOptions.findById(0,{poc:1});
// poc = opt.poc;
// }
const
info
=
{
poc
:
survey
.
poc
,
languages
:
languages
,
externalurl
:
surveygeneral
.
externalurl
}
const
info
=
{
poc
:
poc
,
languages
:
languages
,
externalurl
:
surveygeneral
.
externalurl
}
await
res
.
status
(
201
).
json
({
payload
:
info
,
message
:
"
info
"
,
status
:
"
OK
"
});
}
catch
(
err
)
{
res
.
status
(
400
).
json
({
message
:
err
,
status
:
"
Error
"
});
...
...
public/template/LanguageDef.json
View file @
eb980bf0
This diff is collapsed.
Click to expand it.
public/template/LanguageTrans.json
View file @
eb980bf0
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment