From 6e5d462317ca812b22d4e32a9671eed8fb1875df Mon Sep 17 00:00:00 2001 From: Rizky Date: Sat, 22 Jun 2024 04:47:52 +0700 Subject: [PATCH] fix --- pkgs/api/_deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/api/_deploy.ts b/pkgs/api/_deploy.ts index 290a640..ea791c0 100644 --- a/pkgs/api/_deploy.ts +++ b/pkgs/api/_deploy.ts @@ -49,7 +49,7 @@ export const _ = { case "db-ver": { let file = Bun.file(dir(`${g.datadir}/db-ver`)); - if (!file) { + if (!(await file.exists())) { await Bun.write(dir(`${g.datadir}/db-ver`), Date.now().toString()); file = Bun.file(dir(`${g.datadir}/db-ver`)); }