From ab5f2938d56ae62f9bb2ebe82879ba85392bdaa6 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 18 Jul 2026 19:22:03 +0300 Subject: [PATCH] fix: resolve typescript arguments error for notifications --- backend/src/modules/geofence/geofence.service.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/src/modules/geofence/geofence.service.ts b/backend/src/modules/geofence/geofence.service.ts index 6ee4e64..25bda28 100644 --- a/backend/src/modules/geofence/geofence.service.ts +++ b/backend/src/modules/geofence/geofence.service.ts @@ -56,11 +56,13 @@ export class GeofenceService { this.logger.log(`Geofence breach by ${userType} ${userId} in zone ${zone.name}. Sending campaign.`); // Send Notification - await this.notifications.sendToUser(tenantId, userId, { - title: zone.campaign_title, - body: zone.campaign_body, - data: { type: 'geofence_promo', zoneId: zone.id }, - }); + await this.notifications.sendToUser( + tenantId, + userId, + zone.campaign_title, + zone.campaign_body, + { type: 'geofence_promo', zoneId: zone.id } + ); // Log it await this.campaignLogRepo.save({