web: added the base for the web project
This commit is contained in:
9
apps/web/src/server/services/organization.service.ts
Normal file
9
apps/web/src/server/services/organization.service.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { db } from "../db";
|
||||
|
||||
export function getOrganizationBySlug(slug: string) {
|
||||
return db.organization.findUniqueOrThrow({
|
||||
where: {
|
||||
slug
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user