forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
5f19cad0df
commit
ec400cb86e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user