allow overriding ooye data directory

This commit is contained in:
bbedward 2025-09-08 22:16:17 -04:00
parent d8e6de62e5
commit 42b331135d
11 changed files with 37 additions and 18 deletions

View file

@ -3,8 +3,8 @@
const HeatSync = require("heatsync")
const sync = new HeatSync({watchFS: false})
const sqlite = require("better-sqlite3")
const db = new sqlite("db/ooye.db")
const {getDatabase} = require("../src/db/database")
const db = getDatabase()
const passthrough = require("../src/passthrough")
Object.assign(passthrough, {db, sync})