Skip to content

Commit

Permalink
Uncomment for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Feb 15, 2024
1 parent 2003761 commit bdf86b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/workspaces/apis/advanced_settings/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def update(self, instance, validated):
instance.onboarding_state = "COMPLETE"
instance.save()
# Commenting this for now, will uncomment once we expose to UI
# AdvancedConfigurationsTriggers.post_to_integration_settings(instance.id, True)
AdvancedSettingsTriggers.post_to_integration_settings(instance.id, True)

return instance

Expand Down
13 changes: 7 additions & 6 deletions apps/workspaces/apis/advanced_settings/triggers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from apps.workspaces.models import WorkspaceGeneralSettings
from apps.workspaces.tasks import post_to_integration_settings
from apps.xero.queue import schedule_payment_creation, schedule_reimbursements_sync, schedule_xero_objects_status_sync


Expand Down Expand Up @@ -30,9 +31,9 @@ def run_workspace_general_settings_triggers(
workspace_id=workspace_general_settings_instance.workspace.id,
)

@staticmethod
def post_to_integration_settings(workspace_id: int, active: bool):
"""
Post to integration settings
"""
post_to_integration_settings(workspace_id, active)
@staticmethod
def post_to_integration_settings(workspace_id: int, active: bool):
"""
Post to integration settings
"""
post_to_integration_settings(workspace_id, active)

0 comments on commit bdf86b4

Please sign in to comment.