bugfix
This commit is contained in:
parent
69d91d3a1e
commit
e1dd3f1513
@ -75,8 +75,8 @@ class SettingsMigrator {
|
||||
if (version === '3') {
|
||||
webhook = await this.mongo.findOne('webhooks', { guild: this.guild, feature: 'messageLog' });
|
||||
permissions = await this.mongo.findOne('permissions', { guildId: this.guild });
|
||||
delete webhook._id;
|
||||
delete permissions._id;
|
||||
if(webhook) delete webhook._id;
|
||||
if(permissions) delete permissions._id;
|
||||
} else if (version === '2') {
|
||||
({ webhook = null } = settings.chatlogs || {});
|
||||
const resolved = this.permissions(settings.roles);
|
||||
|
Loading…
Reference in New Issue
Block a user