Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/adapter_processor/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def to_representation(self, instance: AdapterInstance) -> dict[str, str]:
f.decrypt(bytes(instance.adapter_metadata_b).decode("utf-8"))
)
rep[AdapterKeys.ADAPTER_METADATA] = adapter_metadata
rep[common.ICON] = AdapterProcessor.get_adapter_data_with_key(
instance.adapter_id, common.ICON
)

return rep

Expand All @@ -83,6 +86,7 @@ class Meta(BaseAdapterSerializer.Meta):
"adapter_id",
"adapter_name",
"adapter_type",
"is_default",
Comment thread
chandrasekharan-zipstack marked this conversation as resolved.
) # type: ignore

def to_representation(self, instance: AdapterInstance) -> dict[str, str]:
Expand Down