3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Fix bulk message deletion logging. Remove !clean command and response after a short delay.

This commit is contained in:
Dragory 2018-11-24 19:33:29 +02:00
parent a93f25d638
commit 9687359105
2 changed files with 25 additions and 5 deletions

View file

@ -186,10 +186,12 @@ export class GuildSavedMessages extends BaseRepository {
.andWhere("id IN (:ids)", { ids })
.execute();
return this.messages
const deleted = await this.messages
.createQueryBuilder()
.where("id IN (:ids)", { ids })
.getMany();
this.events.emit("deleteBulk", [deleted]);
}
async saveEdit(id, newData: ISavedMessageData) {