The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update app-uninstalled.ts
Steven Teyc418d8cbd6a9
diff --git a/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts b/apps/web/app/api/shopify/integration/webhook/app-uninstalled.tsindex a85c73e432..1d887593e7 100644--- a/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts+++ b/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts@@ -1,18 +1,14 @@-import { redis } from "@/lib/upstash";import { prisma } from "@dub/prisma";export async function appUninstalled({ shopDomain }: { shopDomain: string }) {- await Promise.all([- prisma.project.update({- where: {- shopifyStoreId: shopDomain,- },- data: {- shopifyStoreId: null,- },- }),- redis.del(`shopify:shop:${shopDomain}`),- ]);+ await prisma.project.update({+ where: {+ shopifyStoreId: shopDomain,+ },+ data: {+ shopifyStoreId: null,+ },+ });return "[Shopify] App Uninstalled received.";}