This commit is contained in:
Erik 2022-07-24 16:28:38 +03:00
parent 5f19cad0df
commit ec400cb86e
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -102,6 +102,7 @@ class ImportCommand extends SlashCommand {
await this.client.mongodb.infractions.updateOne({ _id: log._id }, { case: log.case }); await this.client.mongodb.infractions.updateOne({ _id: log._id }, { case: log.case });
} }
await this.client.mongodb.infractions.insertMany(imported); await this.client.mongodb.infractions.insertMany(imported);
if (!guild._data.caseId) guild._data.caseId = 0;
guild._data.caseId += highestOldId; guild._data.caseId += highestOldId;
} }