From 1c40062eecbab33086ba68a3595c659a0404f270 Mon Sep 17 00:00:00 2001
From: Samuli Virtapohja <l4721@student.jamk.fi>
Date: Wed, 24 Jul 2019 11:19:55 +0300
Subject: [PATCH] hotfix for development

---
 src/faction/faction.service.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/faction/faction.service.ts b/src/faction/faction.service.ts
index de1472e..3e2efca 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: '' };
-- 
GitLab