Skip to content

Commit

Permalink
Disable discord user service for deactivated users
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend committed Aug 21, 2024
1 parent d0d8d17 commit 99912a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/discordUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class DiscordUserService {


static async findById(id: string) {
return this.repository.findOneBy({id})
return this.repository.findOneBy({ id, deactivated: false })
}

static async findOrCreate(user: User) {
Expand Down

0 comments on commit 99912a4

Please sign in to comment.