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.`);
|
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({
|
||||||
|
|||||||
Reference in New Issue
Block a user