From 01689bc7457fade53e07ef6f0b7e534161ba9477 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sat, 12 Aug 2023 20:41:50 +0800 Subject: [PATCH] feat: add api of body record 8 --- app/api/v1/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])