From 0ed74feb66fd950fc621bca136e089e758b35487 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 17 Sep 2023 20:15:20 +1200 Subject: [PATCH] Stop this from causing an error I guess? --- d2m/actions/register-user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2m/actions/register-user.js b/d2m/actions/register-user.js index bccc7ac..7d7fb02 100644 --- a/d2m/actions/register-user.js +++ b/d2m/actions/register-user.js @@ -82,7 +82,7 @@ async function ensureSimJoined(user, roomID) { throw e } } - db.prepare("INSERT INTO sim_member (room_id, mxid) VALUES (?, ?)").run(roomID, mxid) + db.prepare("INSERT OR IGNORE INTO sim_member (room_id, mxid) VALUES (?, ?)").run(roomID, mxid) } return mxid }