Skip to content

Commit

Permalink
Update logic for operational status to less than equals to 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
nichellekoh committed Apr 4, 2022
1 parent 228ed48 commit df1a729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/status-api/src/controllers/OracleStatusController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class OracleStatusController {
const timeDiff = nowEpoch - latestPublishedTime

return {
status: timeDiff < (15 * 60 * 1000) ? 'operational' : 'outage'
status: timeDiff <= (15 * 60 * 1000) ? 'operational' : 'outage'
}
}

Expand Down

0 comments on commit df1a729

Please sign in to comment.