diff --git a/services/platform-service/src/modules/predictive-analytics/campaign-engine.ts b/services/platform-service/src/modules/predictive-analytics/campaign-engine.ts index 5ee34105..6e5f4ff2 100644 --- a/services/platform-service/src/modules/predictive-analytics/campaign-engine.ts +++ b/services/platform-service/src/modules/predictive-analytics/campaign-engine.ts @@ -128,7 +128,7 @@ export class CampaignEngine { // Emit event for tracking if (!testMode) { - (bus as any).emit('predictive.campaign.triggered', { + void bus.emit('predictive.campaign.triggered', { campaignId: campaign.id, userId: context.userId, productId: context.productId, @@ -334,7 +334,7 @@ export class CampaignEngine { // In production, call delivery module // await deliveryService.sendEmail({...}) - (bus as any).emit('delivery.email.requested', { + void bus.emit('delivery.email.requested', { userId: context.userId, productId: context.productId, templateId, @@ -379,7 +379,7 @@ export class CampaignEngine { }; } - (bus as any).emit('notifications.push.requested', { + void bus.emit('notifications.push.requested', { userId: context.userId, productId: context.productId, title: 'We miss you!', @@ -413,7 +413,7 @@ export class CampaignEngine { }; } - (bus as any).emit('notifications.inapp.create', { + void bus.emit('notifications.inapp.create', { userId: context.userId, productId: context.productId, title: 'Personalized for you', @@ -474,7 +474,7 @@ export class CampaignEngine { ], }; - (bus as any).emit('integrations.slack.notify', { + void bus.emit('integrations.slack.notify', { channel: '#customer-success', message, });