add server sent events

This commit is contained in:
2025-02-04 11:58:20 +05:30
parent bb7f11c6bf
commit 6a57fed0dc
9 changed files with 100 additions and 3 deletions

View File

@@ -25,7 +25,6 @@ export async function createSession(userId: string, ip?: string, ua?: string) {
export async function getSession(
sessionId: string
): Promise<AuthenticatedUser | null> {
console.log("DB HIT");
const session = await sessionModel.findOne({ sid: sessionId });
if (session === null) return null;