From afa903a4a0710a71b50b6203e8047deda9c383e4 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 27 Nov 2024 11:56:52 -0800 Subject: [PATCH] Don't return deleted website on share page. --- src/queries/prisma/website.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queries/prisma/website.ts b/src/queries/prisma/website.ts index c24cdd0d23..5c8debc9fe 100644 --- a/src/queries/prisma/website.ts +++ b/src/queries/prisma/website.ts @@ -21,6 +21,7 @@ export async function getSharedWebsite(shareId: string) { return findWebsite({ where: { shareId, + deletedAt: null, }, }); }