Skip to content

Commit

Permalink
add comment for removing id in serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
vinit717 committed Dec 25, 2023
1 parent fcd55e4 commit 7e456fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default class UserSerializer extends ApplicationSerializer {

serialize() {
let json = super.serialize(...arguments);
// Remove 'id' as the user patch API does not accept it
delete json.id;
return json;
}
Expand Down

0 comments on commit 7e456fa

Please sign in to comment.