@@ -94,12 +94,10 @@ async def get_structures(
9494 """
9595 Get all structures.
9696 """
97- structures = await cruds_myeclpay .get_structures (
97+ return await cruds_myeclpay .get_structures (
9898 db = db ,
9999 )
100100
101- return structures
102-
103101
104102@router .post (
105103 "/myeclpay/structures" ,
@@ -848,13 +846,11 @@ async def get_store_sellers(
848846 detail = "User does not have the permission to manage sellers" ,
849847 )
850848
851- sellers = await cruds_myeclpay .get_sellers_by_store_id (
849+ return await cruds_myeclpay .get_sellers_by_store_id (
852850 store_id = store_id ,
853851 db = db ,
854852 )
855853
856- return sellers
857-
858854
859855@router .patch (
860856 "/myeclpay/stores/{store_id}/sellers/{seller_user_id}" ,
@@ -1190,13 +1186,11 @@ async def get_user_devices(
11901186 detail = "User is not registered for MyECL Pay" ,
11911187 )
11921188
1193- wallet_devices = await cruds_myeclpay .get_wallet_devices_by_wallet_id (
1189+ return await cruds_myeclpay .get_wallet_devices_by_wallet_id (
11941190 wallet_id = user_payment .wallet_id ,
11951191 db = db ,
11961192 )
11971193
1198- return wallet_devices
1199-
12001194
12011195@router .get (
12021196 "/myeclpay/users/me/wallet/devices/{wallet_device_id}" ,
@@ -1707,7 +1701,7 @@ async def add_transfer_by_admin(
17071701
17081702 message = Message (
17091703 title = "💳 Paiement - transfert" ,
1710- content = f"Votre compte a été crédité de { transfer_info .amount / 100 } €" ,
1704+ content = f"Votre compte a été crédité de { transfer_info .amount / 100 } €" ,
17111705 action_module = "MyECLPay" ,
17121706 )
17131707 await notification_tool .send_notification_to_user (
@@ -2189,7 +2183,7 @@ async def store_scan_qrcode(
21892183
21902184 message = Message (
21912185 title = f"💳 Paiement - { store .name } " ,
2192- content = f"Une transaction de { scan_info .tot / 100 } € a été effectuée" ,
2186+ content = f"Une transaction de { scan_info .tot / 100 } € a été effectuée" ,
21932187 action_module = "MyECLPay" ,
21942188 )
21952189 await notification_tool .send_notification_to_user (
@@ -2364,7 +2358,7 @@ async def refund_transaction(
23642358 if wallet_previously_debited .user is not None :
23652359 message = Message (
23662360 title = "💳 Remboursement" ,
2367- content = f"La transaction pour { wallet_previously_credited_name } ({ transaction .total / 100 } €) a été remboursée de { refund_amount / 100 } €" ,
2361+ content = f"La transaction pour { wallet_previously_credited_name } ({ transaction .total / 100 } €) a été remboursée de { refund_amount / 100 } €" ,
23682362 action_module = "MyECLPay" ,
23692363 )
23702364 await notification_tool .send_notification_to_user (
@@ -2379,7 +2373,7 @@ async def refund_transaction(
23792373 wallet_previously_debited_name = wallet_previously_debited .store .name
23802374 message = Message (
23812375 title = "💳 Remboursement" ,
2382- content = f"Vous avez remboursé la transaction de { wallet_previously_debited_name } ({ transaction .total / 100 } €) de { refund_amount / 100 } €" ,
2376+ content = f"Vous avez remboursé la transaction de { wallet_previously_debited_name } ({ transaction .total / 100 } €) de { refund_amount / 100 } €" ,
23832377 action_module = "MyECLPay" ,
23842378 )
23852379 await notification_tool .send_notification_to_user (
@@ -2510,7 +2504,7 @@ async def cancel_transaction(
25102504 if debited_wallet .user is not None :
25112505 message = Message (
25122506 title = "💳 Paiement annulé" ,
2513- content = f"La transaction de { transaction .total / 100 } € a été annulée" ,
2507+ content = f"La transaction de { transaction .total / 100 } € a été annulée" ,
25142508 action_module = "MyECLPay" ,
25152509 )
25162510 await notification_tool .send_notification_to_user (
0 commit comments