Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
6262a322
Commit
6262a322
authored
Jul 24, 2022
by
Jiwon Yoon
Browse files
createSurvey 오류
parent
4a36252e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/controllers/survey.controller.ts
View file @
6262a322
...
@@ -14,6 +14,7 @@ export const createSurvey = asyncWrap(
...
@@ -14,6 +14,7 @@ export const createSurvey = asyncWrap(
let
survey
=
req
.
body
;
let
survey
=
req
.
body
;
survey
.
user
=
userId
;
survey
.
user
=
userId
;
console
.
log
(
"
survey body
"
,
survey
);
console
.
log
(
"
survey body
"
,
survey
);
delete
survey
.
_id
;
const
newSurvey
=
await
surveyDb
.
createSurvey
(
survey
);
const
newSurvey
=
await
surveyDb
.
createSurvey
(
survey
);
return
res
.
json
(
newSurvey
);
return
res
.
json
(
newSurvey
);
}
}
...
...
Write
Preview
Markdown
is supported
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