Skip to content

Commit bfd54bf

Browse files
committed
Feat: change method name
1 parent f006d1a commit bfd54bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ app.get("/404", (req, res) => {
1919
app.use(express.static(__dirname + "/vue/dist"));
2020

2121
app.get("/api/books", (req, res) => {
22-
if (fs.existsSync("downtime.json")) {
22+
if (fs.existsSynchronously("downtime.json")) {
2323
console.log('Downtime detected');
2424
res.status(500).send();
2525
} else {

0 commit comments

Comments
 (0)