File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,24 @@ const profileResolvers: any = {
4747 RoleOfUser . TTL ,
4848 ] ,
4949 } ,
50- } ) . populate ( {
51- path : 'team' ,
52- strictPopulate : false ,
53- populate : {
54- path : 'cohort' ,
50+ } )
51+ . select ( 'id email role status createdAt updatedAt' )
52+ . populate ( {
53+ path : 'team' ,
5554 strictPopulate : false ,
5655 populate : {
57- path : 'program ' ,
56+ path : 'cohort ' ,
5857 strictPopulate : false ,
5958 populate : {
60- path : 'organization ' ,
59+ path : 'program ' ,
6160 strictPopulate : false ,
61+ populate : {
62+ path : 'organization' ,
63+ strictPopulate : false ,
64+ } ,
6265 } ,
6366 } ,
64- } ,
65- } )
67+ } )
6668 return users
6769 } ,
6870 async getAllRoles ( ) {
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ const Schema = gql`
8282 ratings: [Rating]
8383 twoFactorAuth: Boolean!
8484 TwoWayVerificationToken: String
85+ createdAt: String
86+ updatedAt: String
8587 }
8688 input RegisterInput {
8789 email: String!
You can’t perform that action at this time.
0 commit comments