tether/src/services/community/community.ts
2025-12-23 17:45:51 -05:00

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 };