Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update app-uninstalled.ts

Steven Tey8e3df44b3141
diff --git a/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts b/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts
index c7d95a8bc6..c203d01927 100644
--- a/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts
+++ b/apps/web/app/api/shopify/integration/webhook/app-uninstalled.ts
@@ -1,17 +1,12 @@
-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,
+ },
+ });
}