Fix unblacklisting of people

This commit is contained in:
supositware 2021-04-18 21:27:01 +02:00
parent ce50dee3df
commit 60065159e5

View file

@ -40,8 +40,8 @@ class userBlacklistCommand extends Command {
}
async exec(message, args) {
const blacklist = await Blacklists.findOne({where: {type:args.command, uid:message.author.id}});
const blacklist = await Blacklists.findOne({where: {type:args.command, uid:args.userID}});
console.log(blacklist);
if (!blacklist) {
const body = {type:args.command, uid: args.userID, reason: args.reason};
Blacklists.create(body);