Skip to content

Commit fe9abfe

Browse files
julia-trussJulia Park
andauthored
Update returned object for from_json_api (#45)
Co-authored-by: Julia Park <[email protected]>
1 parent a6b9659 commit fe9abfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unit/models/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __init__(self, id: str, created_at: datetime, previous_status: str, tags: Op
254254

255255
@staticmethod
256256
def from_json_api(_id, _type, attributes, relationships):
257-
return CheckDepositCreatedEvent(_id, date_utils.to_datetime(attributes["createdAt"]),
257+
return CheckDepositPendingReviewEvent(_id, date_utils.to_datetime(attributes["createdAt"]),
258258
attributes["previousStatus"], attributes.get("tags"), relationships)
259259

260260

@@ -267,7 +267,7 @@ def __init__(self, id: str, created_at: datetime, previous_status: str, tags: Op
267267

268268
@staticmethod
269269
def from_json_api(_id, _type, attributes, relationships):
270-
return CheckDepositCreatedEvent(_id, date_utils.to_datetime(attributes["createdAt"]),
270+
return CheckDepositPendingEvent(_id, date_utils.to_datetime(attributes["createdAt"]),
271271
attributes["previousStatus"], attributes.get("tags"), relationships)
272272

273273

0 commit comments

Comments
 (0)