Skip to content
Snippets Groups Projects

Development to testing

Merged Ghost User requested to merge Development into testing
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
@@ -134,12 +134,16 @@ export class FactionService {
where: { person, game },
relations: ['faction'],
});
if (gameperson) {
if (gameperson.faction) {
return {
factionId: gameperson.faction.factionId,
factionName: gameperson.faction.factionName,
};
} else {
throw new HttpException('No faction was found', HttpStatus.BAD_REQUEST);
throw new HttpException(
gameperson ? 'You are admin for this game!' : 'No faction was found',
HttpStatus.BAD_REQUEST,
);
}
}
}
Loading