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
c56d2394
Commit
c56d2394
authored
Sep 05, 2022
by
Yoon, Daeki
😅
Browse files
array length로 변경
parent
accfcc36
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db/answer.db.ts
View file @
c56d2394
...
@@ -45,7 +45,7 @@ export const getAnswers = async (surveyId: string) => {
...
@@ -45,7 +45,7 @@ export const getAnswers = async (surveyId: string) => {
console
.
log
(
"
result:
"
,
result
);
console
.
log
(
"
result:
"
,
result
);
if
(
survey
&&
result
[
0
]
)
{
if
(
survey
&&
result
.
length
>
0
)
{
const
Jsurvey
=
survey
.
toJSON
();
const
Jsurvey
=
survey
.
toJSON
();
Jsurvey
.
questions
=
result
;
Jsurvey
.
questions
=
result
;
return
Jsurvey
;
return
Jsurvey
;
...
...
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