From df652e90568698f0025158392eb29e0b011dbbe8 Mon Sep 17 00:00:00 2001
From: L4168 <L4168@student.jamk.fi>
Date: Wed, 10 Jul 2019 10:45:04 +0300
Subject: [PATCH] updated faction check return

---
 src/faction/faction.service.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/faction/faction.service.ts b/src/faction/faction.service.ts
index 0694033..c1b4923 100644
--- a/src/faction/faction.service.ts
+++ b/src/faction/faction.service.ts
@@ -137,6 +137,7 @@ export class FactionService {
     if (gameperson) {
       return {
         factionId: gameperson.faction.factionId,
+        factionName: gameperson.faction.factionName,
       };
     } else {
       throw new HttpException('No faction was found', HttpStatus.BAD_REQUEST);
-- 
GitLab