Skip to content

Commit 5e7932a

Browse files
committed
up
1 parent 3ef51ea commit 5e7932a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
-13.1 KB
Binary file not shown.

node_modules/.deno/node_modules/commander

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

routes/api/last_live.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ let last_site: any = "Offline";
1010
async function get_last() {
1111
const last = await kv.get(["last", "latest"]);
1212
last_site = last.value;
13-
14-
await kv.get(["last", last_site]).then((res) => {
15-
first_check = { value: res.value };
16-
});
13+
if (last_site != "Offline") {
14+
await kv.get(["last", last_site]).then((res) => {
15+
first_check = { value: res.value };
16+
});
17+
}
1718
}
1819
await get_last();
1920
const last_live = first_check.value;

0 commit comments

Comments
 (0)