Преглед изворни кода

Fixed a bug in the create_party_registration wrapper

Stan Janssen пре 4 година
родитељ
комит
e856b7d08d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      openleadr/service/registration_service.py

+ 2 - 2
openleadr/service/registration_service.py

@@ -91,11 +91,11 @@ class RegistrationService(VTNService):
             result = await result
 
         response_type, response_payload = result
-        response_payload['reponse'] = {'response_code': 200,
+        response_payload['response'] = {'response_code': 200,
                                        'response_description': 'OK',
                                        'request_id': payload['request_id']}
         response_payload['vtn_id'] = self.vtn_id
-        return result
+        return response_type, response_payload
 
     @handler('oadrCancelPartyRegistration')
     async def cancel_party_registration(self, payload):