mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
bugfixes and improvements
This commit is contained in:
@@ -40,7 +40,8 @@ class SqliteConnection {
|
||||
}
|
||||
/**
|
||||
* Returns a singleton instance of better-sqlite3 Database.
|
||||
* Respects env var SQLITE_DB_PATH and defaults to db/listings.db.
|
||||
* Uses the configured `sqlitepath` (from conf/config.json) as the directory,
|
||||
* defaulting to `/db` (relative to the project root) when unset.
|
||||
*/
|
||||
static getConnection() {
|
||||
if (this.#db) return this.#db;
|
||||
|
||||
Reference in New Issue
Block a user