From 091d73958dc5abaf75cc74301278168bd2da8b45 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Sat, 20 Sep 2025 12:25:48 +0530 Subject: [PATCH] Added the comma seprated project IDs to notification data --- Marco.Pms.Services/Service/FirebaseService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Service/FirebaseService.cs b/Marco.Pms.Services/Service/FirebaseService.cs index 5cdf209..e12c07f 100644 --- a/Marco.Pms.Services/Service/FirebaseService.cs +++ b/Marco.Pms.Services/Service/FirebaseService.cs @@ -88,10 +88,13 @@ namespace Marco.Pms.Services.Service .Where(ft => employeeIds.Contains(ft.EmployeeId) && ft.ExpiredAt >= DateTime.UtcNow && ft.TenantId == tenantId) .Select(ft => ft.FcmToken).ToListAsync(); + string commaSeparatedProjectIds = string.Join(",", projectIds); + var data = new Dictionary() { { "Keyword", "Employee_Suspend" }, - { "EmployeeId", employeeId.ToString() } + { "EmployeeId", employeeId.ToString() }, + { "ProjectIds", commaSeparatedProjectIds } }; await SendMessageToMultipleDevicesOnlyDataAsync(registrationTokensForData, data);