Skip to content
Snippets Groups Projects
Commit 1c40062e authored by Samuli Virtapohja's avatar Samuli Virtapohja
Browse files

hotfix for development

parent eaed47c3
No related branches found
No related tags found
2 merge requests!59Development to master,!58Development to testing
......@@ -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: '' };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment