From 3f79c2234c4a332f84d6a292f549f83afa5d0b2d Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 9 Aug 2024 09:23:35 +0700 Subject: [PATCH] fix --- pkgs/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/index.ts b/pkgs/index.ts index eeac49a..f5beaa4 100644 --- a/pkgs/index.ts +++ b/pkgs/index.ts @@ -51,7 +51,11 @@ await createLogger(); await ensureNotRunning(); if (g.db) { - await g.db.$connect(); + try { + await g.db.$connect(); + } catch (e) { + console.error(e); + } } await config.init();