Fix buggy mute cases

This commit is contained in:
Miikka 2018-12-23 01:00:56 +02:00 committed by GitHub
parent b47d69d525
commit d0f8ec2b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ export class GuildMutes extends BaseRepository {
expires_at: expiresAt
});
return this.mutes.findOne(result.identifiers[0].id);
return this.mutes.findOne({ where: result.identifiers[0] });
}
async updateExpiryTime(userId, newExpiryTime) {