Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gulivero1773 committed Jun 6, 2024
1 parent 6e46054 commit b87eb9d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public struct MongoHealthChecks: MongoHealthChecksProtocol {
componentType: .datastore,
// TODO: need get active connection
// observedValue: "",
status: connectionDescription.contains("connecti") ? .pass : .fail,
status: connectionDescription.contains("ok") ? .pass : .fail,
time: app.dateTimeISOFormat.string(from: Date()),
output: !connectionDescription.contains("connecti") ? connectionDescription : nil,
output: !connectionDescription.contains("ok") ? connectionDescription : nil,
links: nil,
node: nil
)
Expand All @@ -74,9 +74,9 @@ public struct MongoHealthChecks: MongoHealthChecksProtocol {
componentType: .datastore,
observedValue: (Date().timeIntervalSince1970 - dateNow) * 1000,
observedUnit: "ms",
status: connectionDescription.contains("connecti") ? .pass : .fail,
status: connectionDescription.contains("ok") ? .pass : .fail,
time: app.dateTimeISOFormat.string(from: Date()),
output: !connectionDescription.contains("connecti") ? connectionDescription : nil,
output: !connectionDescription.contains("ok") ? connectionDescription : nil,
links: nil,
node: nil
)
Expand Down

0 comments on commit b87eb9d

Please sign in to comment.