Skip to content

Commit

Permalink
ft(admin dashboard): Time user joined to an Organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
JacquelineTuyisenge committed Nov 26, 2024
1 parent d0413d0 commit 6ac8bca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/resolvers/profileResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,24 @@ const profileResolvers: any = {
RoleOfUser.TTL,
],
},
}).populate({
path: 'team',
strictPopulate: false,
populate: {
path: 'cohort',
})
.select('id email role status createdAt updatedAt')
.populate({
path: 'team',
strictPopulate: false,
populate: {
path: 'program',
path: 'cohort',
strictPopulate: false,
populate: {
path: 'organization',
path: 'program',
strictPopulate: false,
populate: {
path: 'organization',
strictPopulate: false,
},
},
},
},
})
})
return users
},
async getAllRoles() {
Expand Down
2 changes: 2 additions & 0 deletions src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ const Schema = gql`
ratings: [Rating]
twoFactorAuth: Boolean!
TwoWayVerificationToken: String
createdAt: String
updatedAt: String
}
input RegisterInput {
email: String!
Expand Down

0 comments on commit 6ac8bca

Please sign in to comment.