From c2a45cf761acf64e8fd5b6ef29381709567ba7a7 Mon Sep 17 00:00:00 2001 From: Jack Italiano Date: Wed, 12 Jun 2024 17:19:38 -0400 Subject: [PATCH] return if DB is null instead of error --- src/utils/bidaraDB.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/bidaraDB.js b/src/utils/bidaraDB.js index 252e4cb..ba5eb40 100644 --- a/src/utils/bidaraDB.js +++ b/src/utils/bidaraDB.js @@ -86,6 +86,8 @@ function BidaraDB() { return BIDARA_DB; }, close: async () => { + if (!BIDARA_DB) return; + await dbUtils.closeDB(BIDARA_DB); BIDARA_DB = null; }