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 utils.ts

Kiran K80068dec321e
diff --git a/apps/web/lib/api/fraud/utils.ts b/apps/web/lib/api/fraud/utils.ts
index b51fcabb20..ba44db050a 100644
--- a/apps/web/lib/api/fraud/utils.ts
+++ b/apps/web/lib/api/fraud/utils.ts
@@ -8,7 +8,7 @@ interface CreateGroupKeyInput {
groupingKey: string;
}
-interface CreateHashInput
+interface CreateEventHashInput
extends Pick<
CreateFraudEventInput,
"type" | "programId" | "partnerId" | "customerId" | "metadata"
@@ -61,9 +61,7 @@ export function createFraudEventGroupKey(input: CreateGroupKeyInput): string {
}
// Creates a unique hash for a fraud event to enable deduplication.
-export function createFraudEventHash(
- fraudEvent: CreateHashInput,
-) {
+export function createFraudEventHash(fraudEvent: CreateEventHashInput) {
const identityFields = getIdentityFieldsForFraudEvent(fraudEvent);
const normalizedIdentityFields = Object.keys(identityFields)