Skip to content

Commit

Permalink
fix(#54): SubscriberApi.list() not returning credentials, field email…
Browse files Browse the repository at this point in the history
… is missing in SubscriberDto (#55)
  • Loading branch information
YoranSys authored and ryshu committed Sep 13, 2023
1 parent b3dd86a commit 5d67f52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion novu/dto/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class SubscriberDto(CamelCaseDto["SubscriberDto"]): # pylint: disable=R0902
subscriber_id: str
"""Subscriber's ID"""

email: str
email: Optional[str] = None
"""Email of the subscriber"""

first_name: Optional[str] = None
Expand Down
2 changes: 0 additions & 2 deletions tests/api/test_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ def setUpClass(cls) -> None:
"updatedAt": "2023-02-06T23:03:22.645Z",
"__v": 0,
"isOnline": False,
"email": "oscar.marie-taillefer@spikeelabs.fr",
"lastOnlineAt": "2023-02-06T23:03:22.645Z",
}
cls.response_list = {"page": 0, "totalCount": 1, "pageSize": 10, "data": [cls.subscriber_json]}
cls.response_get = {"data": cls.subscriber_json}
cls.expected_dto = SubscriberDto(
subscriber_id="63dafed4117f8c850991ec4a",
email="oscar.marie-taillefer@spikeelabs.fr",
first_name=None,
last_name=None,
phone=None,
Expand Down

0 comments on commit 5d67f52

Please sign in to comment.