Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

403 B
Raw Blame
import { useNotificationsStore } from '@/stores/notifications.store'
import type { RealtimeEventMap } from '../types'

export function handleNotification(data: RealtimeEventMap['notification']) {
  const notificationsStore = useNotificationsStore()
  notificationsStore.addRealtimeNotification({
    ...data.notification,
    goalId: data.goalId ?? null,
    goalListId: data.goalListId ?? null,
  })
}