feat(project): menambahkan perhitungan task_done sebuah project untuk intern & admin

This commit is contained in:
Muhammad Zhafran Ilham
2026-06-26 00:09:15 +07:00
parent 119ab42afb
commit 6a69e5a055
3 changed files with 63 additions and 0 deletions
@@ -100,11 +100,18 @@ class ProjectRepository {
},
select: {
id: true,
id_user: true,
},
},
tasks: {
select: {
id: true,
submissions: {
select: {
id: true,
id_user: true,
},
},
},
},
},
@@ -239,11 +246,21 @@ class ProjectRepository {
},
select: {
id: true,
id_user: true,
},
},
tasks: {
select: {
id: true,
submissions: {
where: {
id_user: parseInt(internId),
},
select: {
id: true,
id_user: true,
},
},
},
},
},
@@ -315,11 +332,18 @@ class ProjectRepository {
},
select: {
id: true,
id_user: true,
},
},
tasks: {
select: {
id: true,
submissions: {
select: {
id: true,
id_user: true,
},
},
},
},
},