forked from cadence/out-of-your-element
fix bugs from orm migration
This commit is contained in:
parent
1657de4eef
commit
b403f35674
2 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ module.exports = {
|
|||
*/
|
||||
async onMessageUpdate(client, data) {
|
||||
if (data.webhook_id) {
|
||||
const row = select("webhook", "1", "WHERE webhook_id = ?").pluck().get(message.webhook_id)
|
||||
const row = select("webhook", "webhook_id", "WHERE webhook_id = ?").pluck().get(data.webhook_id)
|
||||
if (row) {
|
||||
// The update was sent by the bridge's own webhook on discord. We don't want to reflect this back, so just drop it.
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue