diff --git a/app/api/v1/record.py b/app/api/v1/record.py index bc181db..b037f6c 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -42,7 +42,7 @@ def get_record(record_id): @login_required def get_records(): try: - result = rpc.body_record.get_all_by_user(session['user_id']) + results = rpc.body_record.get_all_by_user(session['user_id']) except Exception as e: raise BodyRecordNotFound() - return result + return {'records': results}