10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
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 };
|