fix: usermod account unlock logic
parent
d4c740206d
commit
69fe6256fa
|
@ -65,11 +65,9 @@ export default class Usermod extends Command {
|
|||
await this.client.util.handleError(error);
|
||||
return this.error(message.channel, 'Failed to modify username. Please check <#595788220764127272> for more information.');
|
||||
} finally {
|
||||
if (account.locked) {
|
||||
await this.client.util.exec(`unlock ${account.username}`);
|
||||
await account.updateOne({ locked: false });
|
||||
}
|
||||
}
|
||||
|
||||
modifyingPropertyResponse.delete();
|
||||
this.success(message.channel, 'Successfully modified username.');
|
||||
|
|
Loading…
Reference in New Issue