Initial Commit

This commit is contained in:
2026-10-03 20:07:49 +02:00
commit a1346c98b1
427 changed files with 59320 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { and, eq } from 'drizzle-orm'
import { notifications } from '../../db/schema'
export default defineEventHandler(async (event) => {
const user = await requireUser(event)
await useDb()
.update(notifications)
.set({ isRead: true })
.where(and(eq(notifications.userId, user.id), eq(notifications.isRead, false)))
return { ok: true }
})