Add services and auth
This commit is contained in:
parent
9b0b5dc040
commit
5dec454afb
46 changed files with 900 additions and 31 deletions
10
src/services/community/community.ts
Normal file
10
src/services/community/community.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { Community } from "../../generated/prisma/client.js";
|
||||
import { getDB } from "../../store/store.js";
|
||||
|
||||
const getCommunityById = async (id: string): Promise<Community | null> => {
|
||||
return await getDB().community.findUnique({
|
||||
where: { id: id },
|
||||
});
|
||||
};
|
||||
|
||||
export { getCommunityById };
|
||||
Loading…
Add table
Add a link
Reference in a new issue