Skip to content

Commit 99e0992

Browse files
committed
fix missing invitedByUser from invite
1 parent 2e4990f commit 99e0992

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/services/public/invite-public.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ export default class InvitePublicService extends Service {
77
const { id } = req.params
88
const em: EntityManager = req.ctx.em
99

10-
const invite = await em.getRepository(Invite).findOne({ token: id }, { populate: ['organisation'] })
10+
const invite = await em.getRepository(Invite).findOne({
11+
token: id
12+
}, {
13+
populate: ['organisation', 'invitedByUser']
14+
})
15+
1116
if (!invite) req.ctx.throw(404, 'Invite not found')
1217

1318
return {

0 commit comments

Comments
 (0)