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.`);
// Send Notification
await this.notifications.sendToUser(tenantId, userId, {
title: zone.campaign_title,
body: zone.campaign_body,
data: { type: 'geofence_promo', zoneId: zone.id },
});
await this.notifications.sendToUser(
tenantId,
userId,
zone.campaign_title,
zone.campaign_body,
{ type: 'geofence_promo', zoneId: zone.id }
);
// Log it
await this.campaignLogRepo.save({