forked from cadence/out-of-your-element
Start moving from SQL to New Funny ORM
This commit is contained in:
parent
cab96cbc9e
commit
4e1e590c3a
8 changed files with 298 additions and 22 deletions
|
@ -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}`) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue