Skip to content

Commit

Permalink
re-add support_identifier (#1255)
Browse files Browse the repository at this point in the history
* re-add support_identifier

* fix user hash
  • Loading branch information
mwvolo authored Aug 27, 2024
1 parent 17af2f1 commit 3810feb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/representers/api/v1/user_representer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ class UserRepresenter < Roar::Decorator
readable: true,
writeable: false

property :support_identifier,
type: String,
readable: true,
writeable: false

property :consent_preferences,
type: JSON,
readable: true,
Expand Down
1 change: 1 addition & 0 deletions spec/support/user_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def user_matcher(user, include_private_data: false)
title: user.title,
suffix: user.suffix,
uuid: user.uuid,
support_identifier: user.support_identifier,
consent_preferences: user.consent_preferences,
is_test: user.is_test?,
is_administrator: user.is_administrator?,
Expand Down

0 comments on commit 3810feb

Please sign in to comment.