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;