From ec400cb86ec84e0ff41a83e4226b0c3498f11941 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 24 Jul 2022 16:28:38 +0300 Subject: [PATCH] bugfix --- src/structure/components/commands/administration/Import.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index d15bbce..fb36b81 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -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.insertMany(imported); + if (!guild._data.caseId) guild._data.caseId = 0; guild._data.caseId += highestOldId; }