Added user change validation and read status

This might be better to just refetch the data with anonymous authorizations
This commit is contained in:
Alexis
2024-12-17 17:17:13 +01:00
parent 49574d8ef1
commit 535a73162c
6 changed files with 23 additions and 18 deletions

View File

@@ -11,11 +11,6 @@ const { data: catData, pending: catPending } = await useLazyFetch("/api/calendar
const cal = computed<Calendar>(() => calendarData?.value?.data as Calendar)
const categories = computed<Category[]>(() => catData?.value?.data as Category[])
const user = useSupabaseUser()
const { setReadStatus } = useCalendar()
setReadStatus(user.value, cal.value)
</script>
<template>

View File

@@ -23,9 +23,6 @@ const { data: catData, pending: catPending } = await useLazyFetch("/api/calendar
const cal = computed<Calendar>(() => calendarData?.value?.data as Calendar)
const categories = computed<Category[]>(() => catData?.value?.data as Category[])
const { setReadStatus } = useCalendar()
setReadStatus(user.value, cal.value)
</script>
<template>