Skip to content

Commit

Permalink
fix banned user
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoaresd committed Dec 3, 2024
1 parent e2e3546 commit 733b259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/banneduser/banneduser.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ func GetBannedUser(ctx context.Context, userEmailHash string, hostClient client.
return &bannedUsers.Items[0], nil
}

return nil, nil
return nil, fmt.Errorf("failed to get banned user %s", userEmailHash)
}
2 changes: 1 addition & 1 deletion pkg/banneduser/banneduser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestGetBannedUser(t *testing.T) {
name: "user is not banned",
toBan: bannedUser2,
wantResult: nil,
wantError: false,
wantError: true,
fakeClient: fakeClient,
},
{
Expand Down

0 comments on commit 733b259

Please sign in to comment.