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

Add MessageSaver plugin. Fix some buggy queries.

This commit is contained in:
Dragory 2018-11-24 14:01:06 +02:00
parent 3913440005
commit a60b1a5b22
8 changed files with 275 additions and 5 deletions

View file

@ -21,7 +21,8 @@ export class GuildArchives extends BaseRepository {
private deleteExpiredArchives() {
this.archives
.createQueryBuilder()
.where("expires_at <= NOW()")
.where("guild_id = :guild_id", { guild_id: this.guildId })
.andWhere("expires_at <= NOW()")
.delete()
.execute();
}