Skip to content

Commit

Permalink
Merge branch 'feature/add-flag-to-configured-app' of https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Jan 23, 2024
2 parents f9d1bb9 + a234868 commit 95dd6e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def create(self, request, app_uuid, *args, **kwargs):
status=status.HTTP_400_BAD_REQUEST,
)

self._update_connected_catalog_flag(app)
# self._update_connected_catalog_flag(app)

credentials = {
"app_key": vtex_app.config.get("api_credentials", {}).get("app_key"),
Expand All @@ -126,7 +126,7 @@ def create(self, request, app_uuid, *args, **kwargs):
kwargs={"credentials": credentials, "catalog_uuid": str(catalog.uuid)},
queue="product_synchronization",
)
self._update_connected_catalog_flag(app)
# self._update_connected_catalog_flag(app)

return Response(CatalogSerializer(catalog).data, status=status.HTTP_201_CREATED)

Expand Down
2 changes: 2 additions & 0 deletions marketplace/services/facebook/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def create_vtex_catalog(self, validated_data, app, vtex_app, user):
"created_by": user,
}
catalog = self._create_catalog_object(data)
app.config["connected_catalog"] = True
app.save()
return catalog, response.get("id")

return None, None
Expand Down

0 comments on commit 95dd6e2

Please sign in to comment.