Merge branch 'main' into feat/admin-project-lms

This commit is contained in:
Rafi Athallah
2026-06-14 20:28:48 +07:00
committed by GitHub
20 changed files with 2992 additions and 12 deletions
@@ -394,6 +394,32 @@ class ProjectRepository {
data: { status },
});
}
async findActiveMembershipsByUserIds(userIds) {
return prisma.projectMember.findMany({
where: {
id_user: {
in: userIds.map((id) => parseInt(id)),
},
status: "active",
},
include: {
user: {
select: {
id: true,
full_name: true,
email: true,
},
},
project: {
select: {
id: true,
project_name: true,
},
},
},
});
}
}
module.exports = new ProjectRepository();