Skip to content

Commit

Permalink
changed user module
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Jul 29, 2024
1 parent 31d1a70 commit 818764a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class UserService {
async getUserByNickname(username: string, session: Session | null) {
const user = await this.prisma.user.findFirst({ where: { username: username }, include: { Bandage: true } });

if (!user) {
if (!user || user.banned) {
return {
statusCode: 404,
message: 'User not found'
Expand Down

0 comments on commit 818764a

Please sign in to comment.