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-08-31 22:55:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1681cbb0a4281644691c7d4feca0ded867439182
1681cbb0
1 parent
eaf76a72
update user functions
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
back/src/api/User/User.js
back/src/api/User/User.js
View file @
1681cbb
...
...
@@ -2,13 +2,11 @@ import { prisma } from "../../utils";
export
default
{
User
:
{
room
s
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
room
s
(),
group
s
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
group
s
(),
messages
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
messages
(),
sender
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
sender
(),
receiver
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
receiver
(),
directMessages
:
(
parent
)
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
directMessages
(),
},
};
...
...
Please
register
or
login
to post a comment