From f954ca1f41bdedee320e53d5ca9eb0e24c4c34b5 Mon Sep 17 00:00:00 2001 From: Eliton <53982066+elitonzky@users.noreply.github.com> Date: Thu, 31 Aug 2023 18:08:31 -0300 Subject: [PATCH] hotfix: set app.configured to True on create/configure externals apptype (#351) --- marketplace/core/types/externals/chatgpt/views.py | 1 + marketplace/core/types/externals/omie/views.py | 1 + 2 files changed, 2 insertions(+) diff --git a/marketplace/core/types/externals/chatgpt/views.py b/marketplace/core/types/externals/chatgpt/views.py index 3b31c9da..a17fbf9f 100644 --- a/marketplace/core/types/externals/chatgpt/views.py +++ b/marketplace/core/types/externals/chatgpt/views.py @@ -33,6 +33,7 @@ def create(self, request, *args, **kwargs): code=type_code, config=config_data, project_uuid=project_uuid, + configured=True, platform=App.PLATFORM_WENI_FLOWS, created_by=request.user, flow_object_uuid=flows_data.get("uuid"), diff --git a/marketplace/core/types/externals/omie/views.py b/marketplace/core/types/externals/omie/views.py index f559b824..a512afb2 100644 --- a/marketplace/core/types/externals/omie/views.py +++ b/marketplace/core/types/externals/omie/views.py @@ -47,6 +47,7 @@ def configure(self, request, **kwargs): ) app.flow_object_uuid = response.json().get("uuid") app.config["title"] = response.json().get("name") + app.configured = True app.save() return Response(serializer.data)