refactor: nambahin role mentor di admin account dan ngeremove max_member di project
This commit is contained in:
@@ -74,6 +74,10 @@ class ProjectRepository {
|
||||
};
|
||||
}
|
||||
|
||||
if (actor?.role === "mentor") {
|
||||
where.id_admin = parseInt(actor.id);
|
||||
}
|
||||
|
||||
return prisma.project.findMany({
|
||||
where,
|
||||
orderBy: {
|
||||
|
||||
Reference in New Issue
Block a user