Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(web): remove dashboard revalidatePath from notifications
Richie McIlroy8f90d5e8899a
diff --git a/apps/web/lib/Notification.ts b/apps/web/lib/Notification.tsindex 860b245d0..986387548 100644--- a/apps/web/lib/Notification.ts+++ b/apps/web/lib/Notification.ts@@ -8,7 +8,6 @@ import { buildEnv, serverEnv } from "@cap/env";import type { Notification, NotificationBase } from "@cap/web-api-contract";import { Comment, User, Video } from "@cap/web-domain";import { and, eq, gte, isNull, ne, or, sql } from "drizzle-orm";-import { revalidatePath } from "next/cache";import type { UserPreferences } from "@/app/(org)/dashboard/dashboard-data";import { getSessionHash } from "@/lib/anonymous-names";@@ -157,7 +156,6 @@ export async function createNotification(videoId: notification.videoId,});- revalidatePath("/dashboard");return { success: true, notificationId };}@@ -233,8 +231,6 @@ export async function createNotification(videoId: notification.videoId,});- revalidatePath("/dashboard");-if (type === "comment") {await sendNewCommentEmail({videoId: notification.videoId,@@ -400,7 +396,6 @@ export async function createAnonymousViewNotification({videoId,dedupKey,});- revalidatePath("/dashboard");} catch (error) {if (isDuplicateEntryError(error)) return;throw error;