add medreport schema

This commit is contained in:
Danel Kungla
2025-07-09 13:31:37 +03:00
parent 9371ff7710
commit d9198a8a12
73 changed files with 420 additions and 270 deletions

View File

@@ -8,6 +8,7 @@ export function useDismissNotification() {
return useCallback(
async (notification: number) => {
const { error } = await client
.schema('medreport')
.from('notifications')
.update({ dismissed: true })
.eq('id', notification);

View File

@@ -49,6 +49,7 @@ function useFetchInitialNotifications(props: { accountIds: string[] }) {
queryKey: ['notifications', ...props.accountIds],
queryFn: async () => {
const { data } = await client
.schema('medreport')
.from('notifications')
.select(
`id,