mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-09 11:53:04 +02:00
Alter SQL column names to be distinct
This commit is contained in:
parent
a49b46381c
commit
28abdac5b6
14 changed files with 40 additions and 25 deletions
|
@ -22,7 +22,7 @@ async function editToChanges(message, guild, api) {
|
|||
// Figure out what events we will be replacing
|
||||
|
||||
const roomID = select("channel_room", "room_id", "WHERE channel_id = ?").pluck().get(message.channel_id)
|
||||
let senderMxid = select("sim", "mxid", "WHERE discord_id = ?").pluck().get(message.author.id) || null
|
||||
let senderMxid = select("sim", "mxid", "WHERE user_id = ?").pluck().get(message.author.id) || null
|
||||
if (senderMxid) {
|
||||
const senderIsInRoom = select("sim_member", "mxid", "WHERE room_id = ? AND mxid = ?").get(roomID, senderMxid)
|
||||
if (!senderIsInRoom) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue