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.

fix webhook cache

Steven Teyd5b93eeef6ff
diff --git a/apps/web/lib/webhook/cache.ts b/apps/web/lib/webhook/cache.ts
index 8a747de979..c3ab07a8cd 100644
--- a/apps/web/lib/webhook/cache.ts
+++ b/apps/web/lib/webhook/cache.ts
@@ -35,7 +35,7 @@ class WebhookCache {
url: webhook.url,
secret: webhook.secret,
triggers: webhook.triggers,
- ...(webhook.disabledAt && { disabledAt: webhook.disabledAt }),
+ ...(webhook.disabledAt ? { disabledAt: webhook.disabledAt } : {}),
};
}