@@ -1231,7 +1231,7 @@ async def get_user_devices(
12311231 user_id = user .id ,
12321232 db = db ,
12331233 )
1234- if user_payment is None or not is_user_latest_tos_signed ( user_payment ) :
1234+ if user_payment is None :
12351235 raise HTTPException (
12361236 status_code = 400 ,
12371237 detail = "User is not registered for MyECL Pay" ,
@@ -1263,30 +1263,30 @@ async def get_user_device(
12631263 user_id = user .id ,
12641264 db = db ,
12651265 )
1266- if user_payment is None or not is_user_latest_tos_signed ( user_payment ) :
1266+ if user_payment is None :
12671267 raise HTTPException (
12681268 status_code = 400 ,
12691269 detail = "User is not registered for MyECL Pay" ,
12701270 )
12711271
1272- wallet_devices = await cruds_myeclpay .get_wallet_device (
1272+ wallet_device = await cruds_myeclpay .get_wallet_device (
12731273 wallet_device_id = wallet_device_id ,
12741274 db = db ,
12751275 )
12761276
1277- if wallet_devices is None :
1277+ if wallet_device is None :
12781278 raise HTTPException (
12791279 status_code = 404 ,
12801280 detail = "Wallet device does not exist" ,
12811281 )
12821282
1283- if wallet_devices .wallet_id != user_payment .wallet_id :
1283+ if wallet_device .wallet_id != user_payment .wallet_id :
12841284 raise HTTPException (
12851285 status_code = 400 ,
12861286 detail = "Wallet device does not belong to the user" ,
12871287 )
12881288
1289- return wallet_devices
1289+ return wallet_device
12901290
12911291
12921292@router .get (
@@ -1308,7 +1308,7 @@ async def get_user_wallet(
13081308 user_id = user .id ,
13091309 db = db ,
13101310 )
1311- if user_payment is None or not is_user_latest_tos_signed ( user_payment ) :
1311+ if user_payment is None :
13121312 raise HTTPException (
13131313 status_code = 400 ,
13141314 detail = "User is not registered for MyECL Pay" ,
0 commit comments