From b9be8b5887475abd7507751d2958dd26929082af Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 19 Aug 2026 20:40:45 +1200 Subject: [PATCH 1/2] Remove mistaken logging --- src/d2m/actions/register-user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d2m/actions/register-user.js b/src/d2m/actions/register-user.js index bd10d5e..3427bbd 100644 --- a/src/d2m/actions/register-user.js +++ b/src/d2m/actions/register-user.js @@ -245,7 +245,7 @@ async function syncUser(user, member, channel, guild, roomID, interactionMetadat async function _sendSyncUser(roomID, mxid, content, powerLevel, options) { const currentHash = _hashProfileContent(content, powerLevel ?? 0) const existingHash = select("sim_member", "hashed_profile_content", {room_id: roomID, mxid}).safeIntegers().pluck().get() - console.log(roomID, mxid, existingHash, currentHash) + // console.log(roomID, mxid, existingHash, currentHash) // only do the actual sync if the hash has changed since we last looked const hashHasChanged = existingHash !== currentHash // always okay to add new data. for overwriting, restrict based on options.allowOverwrite, if present From 0d398be60acd2ef0008f822fd8ecdce3dc4b06a0 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 19 Aug 2026 20:42:50 +1200 Subject: [PATCH 2/2] Fix logging in to Matrix on web --- start.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.js b/start.js index 51942c6..2ab79cb 100755 --- a/start.js +++ b/start.js @@ -14,6 +14,10 @@ const sync = new HeatSync({watchFunction: fs.watchFile}) 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 discord = new DiscordClient(reg.ooye.discord_token) @@ -22,10 +26,6 @@ passthrough.discord = discord const {as} = require("./src/matrix/appservice") 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") sync.require("./src/m2d/event-dispatcher")