Add services and auth

This commit is contained in:
Aslan 2025-12-23 17:45:51 -05:00
parent 9b0b5dc040
commit 5dec454afb
46 changed files with 900 additions and 31 deletions

View file

@ -0,0 +1,10 @@
import type { Channel } from "../../generated/prisma/client.js";
import { getDB } from "../../store/store.js";
const getChannelById = async (id: string): Promise<Channel | null> => {
return await getDB().channel.findUnique({
where: { id: id },
});
};
export { getChannelById };