fix: correct method name for sending push notification
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user