From 736af62344c6c837d4f8e554b73523eb3e13d4eb Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 18 Jul 2026 19:19:57 +0300 Subject: [PATCH] fix: correct method name for sending push notification --- backend/src/modules/geofence/geofence.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },