🔥 refactor(store.py): remove unnecessary "user_created.id" field from list_components function
🔥 refactor(service.py): remove unnecessary "user_created.id" field from StoreService class
This commit is contained in:
parent
acb957fadf
commit
f69917f4b0
2 changed files with 0 additions and 4 deletions
|
|
@ -79,7 +79,6 @@ def list_components(
|
|||
"name",
|
||||
"description",
|
||||
"user_created.first_name",
|
||||
"user_created.id",
|
||||
"is_component",
|
||||
"tags.tags_id.name",
|
||||
"tags.tags_id.id",
|
||||
|
|
@ -94,8 +93,6 @@ def list_components(
|
|||
fields=fields,
|
||||
filter_by_user=filter_by_user,
|
||||
)
|
||||
# tags comes as "tags" : [{"tags_id": {"name": "tag1", "id": 1}}]
|
||||
# so we need to flatten it
|
||||
|
||||
return result
|
||||
except Exception as exc:
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ class StoreService(Service):
|
|||
"name",
|
||||
"description",
|
||||
"user_created.first_name",
|
||||
"user_created.id",
|
||||
"is_component",
|
||||
"tags.tags_id.name",
|
||||
"tags.tags_id.id",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue