Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from kids-first/feature/2283_Add_isActive_field
Browse files Browse the repository at this point in the history
Add isActive field
  • Loading branch information
Jeremy Costanza authored Feb 19, 2020
2 parents 8fb241c + 5a44504 commit d069f97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"isPublic": {
"type": "boolean"
},
"isActive": {
"type": "boolean"
},
"roles": {
"type": "keyword"
},
Expand Down
1 change: 1 addition & 0 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def transform(event):
'institutionalEmail': payload.get('institutionalEmail'),
'acceptedTerms': payload.get('acceptedTerms'),
'isPublic': payload.get('isPublic', False),
'isActive': payload.get('isActive', True),
'roles': payload.get('roles'),
'title': payload.get('title'),
'jobTitle': payload.get('jobTitle'),
Expand Down

0 comments on commit d069f97

Please sign in to comment.