From 4be467ce1fe5466fd62e0c78232147eeb615b82a Mon Sep 17 00:00:00 2001 From: phuongntt Date: Sun, 17 Mar 2024 23:02:55 +0700 Subject: [PATCH] chore: Update list saas market --- locker_server/api_orm/repositories/payment_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locker_server/api_orm/repositories/payment_repository.py b/locker_server/api_orm/repositories/payment_repository.py index a01a9cf..09b3782 100644 --- a/locker_server/api_orm/repositories/payment_repository.py +++ b/locker_server/api_orm/repositories/payment_repository.py @@ -157,7 +157,7 @@ def list_all_invoices(self, **filter_params) -> List[Payment]: return payments def list_saas_market(self) -> List[str]: - return list(set(SaasMarketORM.objects.all().values_list("id", flat=True))) + return list(set(SaasMarketORM.objects.all().values_list("name", flat=True))) def list_invoices_by_user(self, user_id: int, **filter_params) -> List[Payment]: payments_orm = PaymentORM.objects.filter(user_id=user_id).order_by('-created_time')