From a42d94779c750f3d1cd5f21fbc190150f2da9633 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Sat, 28 Dec 2024 19:26:27 +0200 Subject: [PATCH] hotfix: balance_up not recognizing uuid as a valid argument --- app/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index e98637b..10dcfd4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -328,6 +328,9 @@ def ep_balance_up(): if 'user_id' in body: body.update({'user_uuid': body['user_id']}) del body['user_id'] + elif 'uuid' in body: + body.update({'user_uuid': body['uuid']}) + del body['uuid'] if 'user_uuid' not in body: return {}, 403 @@ -358,6 +361,9 @@ def ep_balance_get(): if 'user_id' in body: body.update({'user_uuid': body['user_id']}) del body['user_id'] + elif 'uuid' in body: + body.update({'user_uuid': body['uuid']}) + del body['uuid'] if 'user_uuid' not in body: return {}, 403