Skip to content

Open source alternative to Semrush and Ahrefs

fix: pass only required fields in workflow billingCustomer params (#123)

Ben Senescued27b64eb48e
diff --git a/src/server/features/audit/services/AuditService.ts b/src/server/features/audit/services/AuditService.ts
index 1e29d222..7023e9e5 100644
--- a/src/server/features/audit/services/AuditService.ts
+++ b/src/server/features/audit/services/AuditService.ts
@@ -58,7 +58,12 @@ async function startAudit(input: {
id: auditId,
params: {
auditId,
- billingCustomer: input.billingCustomer,
+ billingCustomer: {
+ userId: input.billingCustomer.userId,
+ userEmail: input.billingCustomer.userEmail,
+ organizationId: input.billingCustomer.organizationId,
+ projectId: input.billingCustomer.projectId,
+ },
projectId: input.projectId,
startUrl,
config,
diff --git a/src/server/features/rank-tracking/services/rankCheckRunGuards.ts b/src/server/features/rank-tracking/services/rankCheckRunGuards.ts
index d362e210..a2c795a5 100644
--- a/src/server/features/rank-tracking/services/rankCheckRunGuards.ts
+++ b/src/server/features/rank-tracking/services/rankCheckRunGuards.ts
@@ -116,7 +116,12 @@ export async function beginRankCheckRun(input: {
params: {
runId,
configId: input.config.id,
- billingCustomer: input.billingCustomer,
+ billingCustomer: {
+ userId: input.billingCustomer.userId,
+ userEmail: input.billingCustomer.userEmail,
+ organizationId: input.billingCustomer.organizationId,
+ projectId: input.billingCustomer.projectId,
+ },
projectId: input.projectId,
domain: input.config.domain,
locationCode: input.config.locationCode,