fix: health check quebrado
All checks were successful
BCards Deployment Pipeline / Run Tests (push) Successful in 4s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 15m28s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 1m36s
BCards Deployment Pipeline / Deploy to Staging (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s

This commit is contained in:
Ricardo Carneiro 2025-09-07 00:41:49 -03:00
parent d700bd35a9
commit a434ff56eb

View File

@ -38,7 +38,7 @@ public class CriticalServicesHealthCheck : IHealthCheck
// 1. MongoDB Check // 1. MongoDB Check
try try
{ {
await _database.RunCommandAsync<object>(new BsonDocument("ping", 1), cancellationToken: cancellationToken); await _database.RunCommandAsync<BsonDocument>(new BsonDocument("ping", 1), cancellationToken: cancellationToken);
results["mongodb"] = new { status = "healthy", service = "database" }; results["mongodb"] = new { status = "healthy", service = "database" };
_logger.LogDebug("✅ MongoDB está respondendo"); _logger.LogDebug("✅ MongoDB está respondendo");
} }