Skip to content

Commit

Permalink
fix filter for user in meController
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazen-Embaby committed Dec 10, 2020
1 parent 77bb83a commit b93d97a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration/crud-typeorm/users/me.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { UsersService } from './users.service';
},
})
@CrudAuth({
property: "user",
filter: (user: User) => ({
id: user.id,
}),
Expand Down

0 comments on commit b93d97a

Please sign in to comment.