Fixed a bug where you could not unblacklist people

This commit is contained in:
loicbersier 2019-12-28 21:06:07 +01:00
parent e3586c7395
commit 1cdaf8cea5

View file

@ -27,7 +27,7 @@ class blacklistCommand extends Command {
}
async exec(message, args) {
const blacklist = await userBlacklist.findOne({where: {userID:message.author.id}});
const blacklist = await userBlacklist.findOne({where: {userID:args.userID}});
if (!blacklist) {
const body = {userID: args.userID};