This commit is contained in:
Rizky 2024-07-29 19:03:57 +07:00
parent 7669cc8aaf
commit 7e78ec23ed
1 changed files with 6 additions and 2 deletions

View File

@ -172,7 +172,9 @@ export const _ = {
return { return {
now: Date.now(), now: Date.now(),
current: parseInt(deploy.config.deploy.ts), 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; break;
@ -186,7 +188,9 @@ export const _ = {
return { return {
now: Date.now(), now: Date.now(),
current: parseInt(deploy.config.deploy.ts), 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; break;