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