diff --git a/Marco.Pms.Services/Controllers/AuthController.cs b/Marco.Pms.Services/Controllers/AuthController.cs index 6162e22..d2944a0 100644 --- a/Marco.Pms.Services/Controllers/AuthController.cs +++ b/Marco.Pms.Services/Controllers/AuthController.cs @@ -983,16 +983,6 @@ namespace MarcoBMS.Services.Controllers _logger.LogError(ex, "Exception occured while saving FCM Token for employee {EmployeeId}", loggedInEmployee.Id); return StatusCode(500, ApiResponse.ErrorResponse("Internal Error", ex.Message, 500)); } - - _ = Task.Run(async () => - { - // --- Push Notification Section --- - // This section attempts to send a test push notification to the user's device. - // It's designed to fail gracefully and handle invalid Firebase Cloud Messaging (FCM) tokens. - await _firebase.SendLoginOnAnotherDeviceMessageAsync(loggedInEmployee.Id, model.FcmToken, tenantId); - - }); - return Ok(ApiResponse.SuccessResponse(new { }, "FCM Token registered Successfuly", 200)); } private static string ComputeSha256Hash(string rawData)