3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 23:25: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

@ -15,8 +15,8 @@ export class GuildMutes extends BaseRepository {
return this.mutes
.createQueryBuilder("mutes")
.where("guild_id = :guild_id", { guild_id: this.guildId })
.where("expires_at IS NOT NULL")
.where("expires_at <= NOW()")
.andWhere("expires_at IS NOT NULL")
.andWhere("expires_at <= NOW()")
.getMany();
}