Skip to content

Commit 454cae6

Browse files
committed
fix(controller): app create err
1 parent 1f8fcc8 commit 454cae6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rootfs/api/signals.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ def create_auth_token_handle(sender, instance=None, created=False, **kwargs):
139139
@receiver(post_save, sender=App)
140140
def app_changed_handle(sender, instance=None, created=False, update_fields=None, **kwargs):
141141
# measure limits to workflow manager
142-
if settings.WORKFLOW_MANAGER_URL and (
143-
created or (
144-
update_fields is not None and "structure" in update_fields)):
142+
if settings.WORKFLOW_MANAGER_URL and not created and (
143+
update_fields is not None and "structure" in update_fields):
145144
timestamp = time.time()
146145
send_measurements.apply_async(
147146
args=[instance.to_measurements(timestamp), ],

0 commit comments

Comments
 (0)