Skip to content

Commit

Permalink
[#1153] Fix removeDB connection by adding db name
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Feb 14, 2024
1 parent 66698c1 commit 0b9a40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/database/conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
/**
Expand Down

0 comments on commit 0b9a40e

Please sign in to comment.