Skip to content

Commit

Permalink
Fix database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaHydrae committed Nov 25, 2024
1 parent 2316513 commit 09df307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile, writeFile } from 'node:fs/promises';

const maxComments = 5;

let dbPromise = Promise.reject(new Error('Database is not open'));
let dbPromise;
let dbOpen = false;

export async function openDatabase({ dbFile }) {
Expand Down

0 comments on commit 09df307

Please sign in to comment.