Skip to content

Commit

Permalink
📝 zaak -> zaak.url
Browse files Browse the repository at this point in the history
  • Loading branch information
damm89 committed May 16, 2024
1 parent 987043f commit ddadfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion backend/src/zac/notifications/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def _handle_status_create(self, data: Dict):
)
or []
)
tasks += get_camunda_user_tasks_for_zaak(zaak, exclude_zaak_creation=True)
tasks += get_camunda_user_tasks_for_zaak(
zaak.url, exclude_zaak_creation=True
)
if tasks:
for task in tasks:
complete_task(task.id, variables=dict())
Expand Down
8 changes: 1 addition & 7 deletions backend/src/zac/notifications/tests/test_status_created.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,8 @@ def test_zaak_updated_is_closed(self, rm):
"name": settings.CAMUNDA_OPEN_BIJDRAGE_TASK_NAME + zaak["identificatie"]
}
)
z = factory(Zaak, zaak)
zt = factory(ZaakType, ZAAKTYPE_RESPONSE)
s = factory(Status, STATUS_RESPONSE)
s.statustype = factory(StatusType, statustype)
z.status = s
z.zaaktype = zt
mock_get_camunda_user_tasks_for_zaak.assert_called_once_with(
z, exclude_zaak_creation=True
ZAAK, exclude_zaak_creation=True
)
mock_complete_task.assert_called_with("some-id", variables=dict())

Expand Down

0 comments on commit ddadfbd

Please sign in to comment.