diff --git a/api/apps/api/src/modules/cost-surface/adapters/project/project-cost-surface-api-events.ts b/api/apps/api/src/modules/cost-surface/adapters/project/project-cost-surface-api-events.ts index bf4a524a8f..4f86d70eb3 100644 --- a/api/apps/api/src/modules/cost-surface/adapters/project/project-cost-surface-api-events.ts +++ b/api/apps/api/src/modules/cost-surface/adapters/project/project-cost-surface-api-events.ts @@ -30,9 +30,10 @@ export class ProjectCostSurfaceApiEvents async event( projectId: string, state: ProjectCostSurfaceState, + context?: Record, ): Promise { await this.create({ - data: {}, + data: context ?? {}, topic: projectId, kind: this.eventsMap[state], }); diff --git a/api/apps/api/src/modules/cost-surface/application/project/create-project-cost-surface.handler.ts b/api/apps/api/src/modules/cost-surface/application/project/create-project-cost-surface.handler.ts index fbd6516c91..2b925b79f0 100644 --- a/api/apps/api/src/modules/cost-surface/application/project/create-project-cost-surface.handler.ts +++ b/api/apps/api/src/modules/cost-surface/application/project/create-project-cost-surface.handler.ts @@ -55,7 +55,7 @@ export class CreateProjectCostSurfaceHandler error: unknown, ) => { this.logger.error( - `Failed submitting update-cost-surface-for-${projectId} job`, + `Failed submitting cost-surface-for-${projectId} job`, String(error), ); await this.events.event(