parent
cea014ce9d
commit
ba86017d4f
13
index.js
13
index.js
|
@ -522,14 +522,13 @@ const handleDiscord = function (data) {
|
|||
color: 0xff0000
|
||||
}
|
||||
]
|
||||
}).then(() => {
|
||||
db.run(`DELETE FROM userAlerts WHERE userid = ? AND iemchannel = ?`, [user.id, fromChannel], (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
console.log(`${colors.cyan("[INFO]")} Deleted user ${user.id} from database`);
|
||||
});
|
||||
})
|
||||
db.run(`DELETE FROM userAlerts WHERE userid = ? AND iemchannel = ?`, [user.id, fromChannel], (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
console.log(`${colors.cyan("[INFO]")} Deleted user ${user.id} from database`);
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue