Start moving from SQL to New Funny ORM

This commit is contained in:
Cadence Ember 2023-09-14 12:32:27 +12:00
parent cab96cbc9e
commit 4e1e590c3a
8 changed files with 298 additions and 22 deletions

View file

@ -18,6 +18,10 @@ const sync = new HeatSync({watchFS: false})
Object.assign(passthrough, { config, sync, db })
const orm = sync.require("../db/orm")
passthrough.from = orm.from
passthrough.select = orm.select
const file = sync.require("../matrix/file")
file._actuallyUploadDiscordFileToMxc = function(url, res) { throw new Error(`Not allowed to upload files during testing.\nURL: ${url}`) }