Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-20 13:57:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4bd86a9b0c4c3e2918c1df0ba210e71440684a19
4bd86a9b
1 parent
9aafedf3
update createRoom resolver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
back/src/api/Room/createRoom/createRoom.js
back/src/api/Room/createRoom/createRoom.js
View file @
4bd86a9
...
...
@@ -3,7 +3,7 @@ import { prisma } from "../../../utils";
export
default
{
Mutation
:
{
createRoom
:
async
(
_
,
args
)
=>
{
const
{
participantsId
,
categories
}
=
args
;
const
{
participantsId
,
categories
,
name
}
=
args
;
let
newRoom
,
participantId
;
if
(
participantsId
!==
undefined
)
{
newRoom
=
await
prisma
.
room
.
create
({
...
...
@@ -15,6 +15,7 @@ export default {
)),
},
},
name
,
},
});
}
...
...
@@ -26,6 +27,7 @@ export default {
id
:
(
category
=
categories
.
forEach
((
cur
,
_
,
__
)
=>
cur
)),
},
},
name
,
},
});
}
...
...
Please
register
or
login
to post a comment