diff --git a/backend/src/modules/geofence/geofence.service.ts b/backend/src/modules/geofence/geofence.service.ts index 78911c8..6ee4e64 100644 --- a/backend/src/modules/geofence/geofence.service.ts +++ b/backend/src/modules/geofence/geofence.service.ts @@ -56,7 +56,7 @@ export class GeofenceService { this.logger.log(`Geofence breach by ${userType} ${userId} in zone ${zone.name}. Sending campaign.`); // Send Notification - await this.notifications.sendPushToUser(tenantId, userId, { + await this.notifications.sendToUser(tenantId, userId, { title: zone.campaign_title, body: zone.campaign_body, data: { type: 'geofence_promo', zoneId: zone.id },