From c696a87cd09c703bed6fb9c38059877159001eca Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 29 Jul 2024 19:10:39 +0700 Subject: [PATCH] fix --- pkgs/api/_deploy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/api/_deploy.ts b/pkgs/api/_deploy.ts index 77574fa..866d71a 100644 --- a/pkgs/api/_deploy.ts +++ b/pkgs/api/_deploy.ts @@ -41,7 +41,9 @@ export const _ = { return { now: Date.now(), current: parseInt(g.deploy.config.deploy.ts), - deploys: deploys.map((e) => parseInt(e.replace(".gz", ""))), + deploys: deploys + .filter((e) => e.endsWith(".gz")) + .map((e) => parseInt(e.replace(".gz", ""))), db: { url: g.dburl || "-", }, @@ -148,7 +150,9 @@ export const _ = { return { now: Date.now(), current: parseInt(deploy.config.deploy.ts), - deploys: deploys.map((e) => parseInt(e.replace(".gz", ""))), + deploys: deploys + .filter((e) => e.endsWith(".gz")) + .map((e) => parseInt(e.replace(".gz", ""))), }; } break;