From fb55e933957c9bdbcbb1f54ebdcf0be257e98cb6 Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Tue, 15 Oct 2024 15:47:44 +0530 Subject: [PATCH] fix: support marking an integration back as active --- apps/workspaces/actions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/workspaces/actions.py b/apps/workspaces/actions.py index 72b31c4c..1c71534e 100644 --- a/apps/workspaces/actions.py +++ b/apps/workspaces/actions.py @@ -121,6 +121,9 @@ def connect_qbo_oauth(refresh_token, realm_id, workspace_id): workspace.save() + if workspace.onboarding_state == 'COMPLETE': + post_to_integration_settings(workspace_id, True) + # Return the QBO credentials as serialized data return Response(data=QBOCredentialSerializer(qbo_credentials).data, status=status.HTTP_200_OK)