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 ts error

Steven Teybffd3ea4f5c8
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/invites/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/invites/route.ts
index 693d0bea91..23a6499875 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/invites/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/invites/route.ts
@@ -146,7 +146,8 @@ export const POST = withWorkspace(
if (results.some((result) => result.status === "rejected")) {
const failedInvites = results.filter(
- (result) => result.status === "rejected",
+ (result): result is PromiseRejectedResult =>
+ result.status === "rejected",
);
throw new DubApiError({
code: "bad_request",