Skip to content

Commit d51e129

Browse files
Merge pull request #3203 from ace03uec/fix-migration-guide-logic
docs(migration): fix logic for health indicator example
2 parents d7744e9 + bb0eafd commit d51e129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/migration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,9 @@ export class DogHealthIndicator {
283283

284284
try {
285285
const badboys = await this.getBadboys();
286+
const isHealthy = badboys.length === 0;
286287

287-
if (badboys.length === 0) {
288+
if (!isHealthy) {
288289
// Mark the indicator as "down" and add additional info to the response
289290
return indicator.down({ badboys: badboys.length });
290291
}

0 commit comments

Comments
 (0)