diff --git a/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py b/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py index 094ff451f..15b93fd9f 100644 --- a/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py +++ b/backoffice-repo/workflows/plugins/hooks/inspirehep/inspire_http_hook.py @@ -1,4 +1,3 @@ -import json import logging import requests @@ -60,6 +59,6 @@ def call_api(self, method: str, endpoint: str, data: dict) -> Response: _retry_args=self.tenacity_retry_kwargs, endpoint=endpoint, headers=self.headers, - data=json.dumps(data), + data=data, method=method, )