fix: correct method name for sending push notification

This commit is contained in:
Hamza-Ayed
2026-07-18 19:19:57 +03:00
parent 741c6d36de
commit 736af62344
@@ -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 },