We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e4990f commit 99e0992Copy full SHA for 99e0992
src/services/public/invite-public.service.ts
@@ -7,7 +7,12 @@ export default class InvitePublicService extends Service {
7
const { id } = req.params
8
const em: EntityManager = req.ctx.em
9
10
- const invite = await em.getRepository(Invite).findOne({ token: id }, { populate: ['organisation'] })
+ const invite = await em.getRepository(Invite).findOne({
11
+ token: id
12
+ }, {
13
+ populate: ['organisation', 'invitedByUser']
14
+ })
15
+
16
if (!invite) req.ctx.throw(404, 'Invite not found')
17
18
return {
0 commit comments