mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2026-03-22 12:37:13 +11:00
aaa
This commit is contained in:
parent
2a57bab0a2
commit
d047a217b3
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
|
@ -80,8 +80,9 @@ fastify.get("/", async function (req, res) {
|
||||||
let errors = req.session.errors;
|
let errors = req.session.errors;
|
||||||
req.session.errors = "";
|
req.session.errors = "";
|
||||||
console.log(`${api}/api/properties`);
|
console.log(`${api}/api/properties`);
|
||||||
|
let checkalive
|
||||||
try{
|
try{
|
||||||
let checkalive = await fetch(`${api}/api/properties`, {
|
checkalive = await fetch(`${api}/api/properties`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|
@ -91,7 +92,7 @@ fastify.get("/", async function (req, res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let alive = false
|
let alive = false
|
||||||
if (checkalive.ok) {
|
if (await checkalive.ok) {
|
||||||
alive = true;
|
alive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue