Skip to content

Commit 8ee5045

Browse files
committed
Make guest customer first on the list
1 parent 0630520 commit 8ee5045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parlant/core/customers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ async def update_customer(
234234
async def list_customers(
235235
self,
236236
) -> Sequence[Customer]:
237-
return [
237+
return [await self.read_customer(CustomerStore.GUEST_ID)] + [
238238
await self._deserialize_customer(e) for e in await self._customers_collection.find({})
239-
] + [await self.read_customer(CustomerStore.GUEST_ID)]
239+
]
240240

241241
@override
242242
async def delete_customer(

0 commit comments

Comments
 (0)