Added user change validation and read status
This might be better to just refetch the data with anonymous authorizations
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user