Fix logging in to Matrix on web

This commit is contained in:
Cadence Ember
2026-08-19 20:42:50 +12:00
parent b9be8b5887
commit 0d398be60a
+4 -4
View File
@@ -14,6 +14,10 @@ const sync = new HeatSync({watchFunction: fs.watchFile})
Object.assign(passthrough, {sync, db}) Object.assign(passthrough, {sync, db})
const orm = sync.require("./src/db/orm")
passthrough.from = orm.from
passthrough.select = orm.select
const DiscordClient = require("./src/d2m/discord-client") const DiscordClient = require("./src/d2m/discord-client")
const discord = new DiscordClient(reg.ooye.discord_token) const discord = new DiscordClient(reg.ooye.discord_token)
@@ -22,10 +26,6 @@ passthrough.discord = discord
const {as} = require("./src/matrix/appservice") const {as} = require("./src/matrix/appservice")
passthrough.as = as passthrough.as = as
const orm = sync.require("./src/db/orm")
passthrough.from = orm.from
passthrough.select = orm.select
const power = require("./src/matrix/power.js") const power = require("./src/matrix/power.js")
sync.require("./src/m2d/event-dispatcher") sync.require("./src/m2d/event-dispatcher")