fix: resolve typescript arguments error for notifications

This commit is contained in:
Hamza-Ayed
2026-07-18 19:22:03 +03:00
parent 736af62344
commit ab5f2938d5
@@ -56,11 +56,13 @@ export class GeofenceService {
this.logger.log(`Geofence breach by ${userType} ${userId} in zone ${zone.name}. Sending campaign.`); this.logger.log(`Geofence breach by ${userType} ${userId} in zone ${zone.name}. Sending campaign.`);
// Send Notification // Send Notification
await this.notifications.sendToUser(tenantId, userId, { await this.notifications.sendToUser(
title: zone.campaign_title, tenantId,
body: zone.campaign_body, userId,
data: { type: 'geofence_promo', zoneId: zone.id }, zone.campaign_title,
}); zone.campaign_body,
{ type: 'geofence_promo', zoneId: zone.id }
);
// Log it // Log it
await this.campaignLogRepo.save({ await this.campaignLogRepo.save({