From 0b9a40e138ddbdff5d8848bfc1107e8ae478ef2e Mon Sep 17 00:00:00 2001 From: ifirmawan Date: Wed, 14 Feb 2024 18:33:54 +0700 Subject: [PATCH] [#1153] Fix removeDB connection by adding db name --- app/src/database/conn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/database/conn.js b/app/src/database/conn.js index 44adfc70b..0bdd76cf3 100644 --- a/app/src/database/conn.js +++ b/app/src/database/conn.js @@ -76,7 +76,7 @@ const removeDB = async () => { /** * Check user session before deletion */ - const db = openDatabase(); + const db = openDatabase('db.db'); const { rows } = await tx(db, 'SELECT * FROM users where active = ?', [1]); if (rows.length === 0) { /**