Skip to content

Commit

Permalink
fix(versioning): webhooks not triggered when new version published (F…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored May 22, 2024
1 parent 46fa710 commit fb2191b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/features/versioning/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def trigger_update_version_webhooks(environment_feature_version_uuid: str) -> No

data = environment_feature_version_webhook_schema.dump(environment_feature_version)
call_environment_webhooks(
environment=environment_feature_version.environment,
environment=environment_feature_version.environment_id,
data=data,
event_type=WebhookEventType.NEW_VERSION_PUBLISHED,
)
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_trigger_update_version_webhooks(

# Then
mock_call_environment_webhooks.assert_called_once_with(
environment=environment_v2_versioning,
environment=environment_v2_versioning.id,
data={
"uuid": str(version.uuid),
"feature": {"id": feature.id, "name": feature.name},
Expand Down

0 comments on commit fb2191b

Please sign in to comment.