Skip to content

Open source alternative to Semrush and Ahrefs

fix: explicitly pick billingCustomer fields for workflow serialization (#97)

Ben Senescuc9d212b8b8d9
diff --git a/src/serverFunctions/audit.ts b/src/serverFunctions/audit.ts
index da133c2a..47498cd6 100644
--- a/src/serverFunctions/audit.ts
+++ b/src/serverFunctions/audit.ts
@@ -18,7 +18,11 @@ export const startAudit = createServerFn({ method: "POST" })
.handler(async ({ data, context }) => {
const result = await AuditService.startAudit({
actorUserId: context.userId,
- billingCustomer: context,
+ billingCustomer: {
+ organizationId: context.organizationId,
+ userEmail: context.userEmail,
+ userId: context.userId,
+ },
projectId: context.projectId,
startUrl: data.startUrl,
maxPages: data.maxPages,