allow overriding ooye data directory

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

View file

@ -2,13 +2,13 @@
// @ts-check
const fs = require("fs")
const sqlite = require("better-sqlite3")
const migrate = require("./src/db/migrate")
const HeatSync = require("heatsync")
const {reg} = require("./src/matrix/read-registration")
const passthrough = require("./src/passthrough")
const db = new sqlite("ooye.db")
const {getDatabase} = require("./src/db/database")
const db = getDatabase()
const sync = new HeatSync({watchFunction: fs.watchFile})