mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-15 14:22:14 +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;
|
||||
req.session.errors = "";
|
||||
console.log(`${api}/api/properties`);
|
||||
let checkalive
|
||||
try{
|
||||
let checkalive = await fetch(`${api}/api/properties`, {
|
||||
checkalive = await fetch(`${api}/api/properties`, {
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
},
|
||||
|
|
@ -91,7 +92,7 @@ fastify.get("/", async function (req, res) {
|
|||
}
|
||||
|
||||
let alive = false
|
||||
if (checkalive.ok) {
|
||||
if (await checkalive.ok) {
|
||||
alive = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue