This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-04 13:23:21 +01:00
parent 30af9cab2f
commit ccd1a1456f
135 changed files with 5588 additions and 1758 deletions

View File

@@ -23,3 +23,15 @@ export function getOrganizationById(id: string) {
},
});
}
export function getOrganizationByProjectId(projectId: string) {
return db.organization.findFirst({
where: {
projects: {
some: {
id: projectId,
},
},
},
});
}