From 0fd10ca93f4e6b350e58d899317caa1863ed6d20 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 23 Jun 2025 13:37:38 -0400 Subject: [PATCH] fix methis --- app/api/services/account.py | 2 +- app/api/services/products.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/services/account.py b/app/api/services/account.py index 879a3a8..ae6511d 100644 --- a/app/api/services/account.py +++ b/app/api/services/account.py @@ -27,7 +27,7 @@ class AccountService(BaseService): try: with db.session.begin(): - validated_data = RegisterService.validate_data(data, UserSchema()) + validated_data = AccountService.validate_data(data, UserSchema()) user_token = validated_data.get('token') uid = validated_data.get('uid') member = Members.get_member_by_uid(uid) diff --git a/app/api/services/products.py b/app/api/services/products.py index 2d699bb..386995a 100644 --- a/app/api/services/products.py +++ b/app/api/services/products.py @@ -47,7 +47,7 @@ class ProductsService(BaseService): with db.session.begin(): - validated_data = RegisterService.validate_data(data, ProductsSchema()) + validated_data = ProductsService.validate_data(data, ProductsSchema()) # username = validated_data.get('username') # password = validated_data.get('password')