import type { Community } from "../../generated/prisma/client.js"; import { getDB } from "../../store/store.js"; const getCommunityById = async (id: string): Promise => { return await getDB().community.findUnique({ where: { id: id }, }); }; export { getCommunityById };