Added correct RLS and month api routes

This commit is contained in:
Alexis
2024-08-23 16:34:47 +02:00
parent db96e66b7a
commit a7cf648f2f
7 changed files with 277 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ export default defineEventHandler(async (event) => {
.from('calendar_events')
.delete()
.eq('id', params.id)
.single<CalendarEvent>()
.maybeSingle<CalendarEvent>()
if (error) throw error