diff --git a/app/api/v1/record.py b/app/api/v1/record.py index b037f6c..ef2fea5 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -15,7 +15,7 @@ record = APIBlueprint('record', __name__) @login_required def add_record(json_data): try: - rpc.body_record.add(user_obj_id=session['user_id'], + rpc.body_record.add(user_id=session['user_id'], height=json_data['height'], weight=json_data['weight'], bmi=json_data['bmi'])