Skip to content

Commit 39437f1

Browse files
ft(admin dashboard): Time user joined to an Organisation (#440)
1 parent d0413d0 commit 39437f1

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/resolvers/profileResolver.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff 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() {

src/schema/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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!

0 commit comments

Comments
 (0)