Skip to content

Commit f302887

Browse files
committed
fix(portaswitch): resolve type error by converting aliases to strings
1 parent b35c341 commit f302887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/bss/adapters/portaswitch/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def retrieve_contacts(self, session: SessionInfo, user: UserInfo) -> list[Contac
412412

413413
for ext in extensions:
414414
if ext["type"] in allowed_ext_types and ext.get("i_account") != i_account:
415-
aliases = account_to_aliases.get(ext.get("i_account"), [])
415+
aliases = [str(alias) for alias in account_to_aliases.get(ext.get("i_account"), [])]
416416
contacts.append(Serializer.get_contact_info_by_extension(ext, aliases, i_account))
417417
case PortaSwitchContactsSelectingMode.ACCOUNTS:
418418
accounts = self._admin_api.get_account_list(i_customer)["account_list"]

0 commit comments

Comments
 (0)