Bladeren bron

Fixed a bug in the create_party_registration wrapper

Stan Janssen 4 jaren geleden
bovenliggende
commit
e856b7d08d
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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):