Merge branch 'rafi/taskmanager'
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-11 12:44:17 +03:30
3 changed files with 35 additions and 1 deletions
@@ -21,7 +21,19 @@ export class ProjectService {
) {}
async findOneOrFail(id: string): Promise<TMProject> {
const project = await this.projectRepository.findOne({ where: { id } });
const project = await this.projectRepository.findOne({
where: { id },
relations: {
users: true,
},
select: {
users: {
id: true,
firstName: true,
lastName: true
}
}
});
if (!project) throw new NotFoundException(ProjectMessage.PROJECT_NOT_FOUND);
return project;
}
@@ -23,6 +23,8 @@ export class TaskRepository extends Repository<TMTask> {
)
.select([
"task",
"remark.id",
"remark.title",
"remark.color",