diff --git a/src/faction/faction.service.ts b/src/faction/faction.service.ts index de1472e4a31e3bfc9df865204556eccd71c25e85..3e2efca3c2c6e6c275dbe76e5b8006559f2009fb 100644 --- a/src/faction/faction.service.ts +++ b/src/faction/faction.service.ts @@ -213,13 +213,14 @@ export class FactionService { async verifyUser(person, game) { const gameperson = await this.game_PersonRepository.findOne({ where: { person, game }, - relations: ['faction'], + relations: ['faction', 'group'], }); if (gameperson && gameperson.faction) { return { factionId: gameperson.faction.factionId, factionName: gameperson.faction.factionName, role: gameperson.role, + group: gameperson.group ? true : false, }; } else { return gameperson ? { role: gameperson.role } : { role: '' };