fix: msg ao excluir
Some checks failed
Deploy QR Rapido / test (push) Successful in 25s
Deploy QR Rapido / build-and-push (push) Failing after 4s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Has been skipped

This commit is contained in:
Ricardo Carneiro 2025-08-04 20:37:59 -03:00
parent a7af34659b
commit c2c89af91b

View File

@ -531,17 +531,17 @@ namespace QRRapidoApp.Controllers
if (success)
{
_logger.LogInformation("QR code deleted from history - QRId: {QRId}, UserId: {UserId}", qrId, userId);
return Ok(new { success = true, message = _localizer["QRCodeDeleted"] });
return Ok(new { success = true, message = _localizer["QRCodeDeleted"].Value });
}
else
{
return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"] });
return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"].Value });
}
}
catch (Exception ex)
{
_logger.LogError(ex, "Error deleting QR from history - QRId: {QRId}", qrId);
return StatusCode(500, new { success = false, message = _localizer["ErrorDeletingQR"] });
return StatusCode(500, new { success = false, message = _localizer["ErrorDeletingQR"].Value });
}
}