diff --git a/src/faction/faction.service.ts b/src/faction/faction.service.ts index 4402878647ee98fa7f73a40bfbee859a25a4a39a..76242dfe1bceda0776435b43c4fdc4cb60fe272c 100644 --- a/src/faction/faction.service.ts +++ b/src/faction/faction.service.ts @@ -94,6 +94,7 @@ export class FactionService { await this.game_PersonRepository.save(gamePerson); return { + code: 201, message: 'created new group', }; } @@ -113,6 +114,7 @@ export class FactionService { gamePerson.group = data.groupId; await this.game_PersonRepository.save(gamePerson); return { + code: 200, message: 'Joined group', }; } diff --git a/src/game/game.service.ts b/src/game/game.service.ts index 37f2e47c2888e107c20cb7413a499cc737ca189c..573bb2255ba2d65f828ad3900ff064e1fc471d13 100644 --- a/src/game/game.service.ts +++ b/src/game/game.service.ts @@ -48,6 +48,7 @@ export class GameService { }); await this.game_PersonRepository.insert(gamePerson); return { + code: 201, message: 'New game added', }; } @@ -106,6 +107,7 @@ export class GameService { // TO DO: ADD FLAGBOX LOCATION TO MAPDRAWING ENTITY return { + code: 200, message: 'Game updated', }; } @@ -118,6 +120,7 @@ export class GameService { // TODO: Delete factions from Faction table associated with the deleted game await this.gameRepository.delete({ id }); return { + code: 200, message: 'Game deleted', }; } @@ -168,5 +171,9 @@ export class GameService { await this.objectivePoint_HistoryRepository.insert(eventUpdate); // send flagbox event to flagbox subscribers this.notificationGateway.server.emit('flagbox', 'event update'); + return { + code: 201, + message: 'OK', + }; } }