Skip to content
Snippets Groups Projects
Commit 727642cc authored by L4168's avatar L4168
Browse files

fetchtasks returns faction information for admin

parent ecd67c46
No related branches found
No related tags found
3 merge requests!59Development to master,!31Development,!25Dto service
This commit is part of merge request !25. Comments created here will be created in the context of that merge request.
......@@ -77,7 +77,10 @@ export class TaskService {
relations: ['faction'],
});
if (gamePerson.role == 'admin') {
return await this.taskRepository.find({ taskGame: taskGame });
return await this.taskRepository.find({
where: { taskGame: taskGame },
relations: ['faction'],
});
} else {
return await this.taskRepository.find({
relations: ['faction'],
......
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