fix: resolve typescript arguments error for notifications
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user