From 5f19cad0dffc1f06ed5961686c2ba692ec41a19e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 24 Jul 2022 13:28:35 +0300 Subject: [PATCH] bugfix --- src/structure/components/commands/administration/Import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index 00a7731..d15bbce 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -95,7 +95,7 @@ class ImportCommand extends SlashCommand { await this.client.mongodb.infractions.insertMany(imported); guild._data.caseId = imported[imported.length-1].case; } else { // Bump existing logs by the highest case id from imported logs - const highestOldId = imported[imported.length - 1]; + const highestOldId = imported[imported.length - 1].case; const existingLogs = await this.client.mongodb.infractions.find({ guild: guild.id }); for (const log of existingLogs) { log.case += highestOldId;