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:
parent
3913440005
commit
a60b1a5b22
8 changed files with 275 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue