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 usage-checks.ts

Steven Tey542c240a1847
diff --git a/apps/web/lib/api/links/usage-checks.ts b/apps/web/lib/api/links/usage-checks.ts
index 8e5a51ef3c..8a2be20264 100644
--- a/apps/web/lib/api/links/usage-checks.ts
+++ b/apps/web/lib/api/links/usage-checks.ts
@@ -3,7 +3,7 @@ import { DubApiError, exceededLimitError } from "../errors";
// Workspace clicks usage overage checks
export const throwIfClicksUsageExceeded = (workspace: WorkspaceWithUsers) => {
- if (workspace.usage >= workspace.usageLimit) {
+ if (workspace.usage > workspace.usageLimit) {
throw new DubApiError({
code: "forbidden",
message: exceededLimitError({