Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
karankraina committed Oct 19, 2024
1 parent eecf827 commit 4369b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ underPressure(app, {
});

app.get('/', (req, res) => {
if (app.isUnderPressure()) {
if (app.locals.isUnderPressure()) {
// Avoind heavy computations here
}
res.send('Hello World!');
Expand Down

0 comments on commit 4369b80

Please sign in to comment.