forked from Supositware/Haha-Yes
Fix unblacklisting of people
This commit is contained in:
parent
ce50dee3df
commit
60065159e5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue