diff --git a/back/admin/integrations/models.py b/back/admin/integrations/models.py index 0f58711fe..f2a51d0b4 100644 --- a/back/admin/integrations/models.py +++ b/back/admin/integrations/models.py @@ -111,7 +111,7 @@ class ManifestType(models.IntegerChoices): def has_user_context(self): return self.manifest_type == Integration.ManifestType.WEBHOOK - def run_request(self, data, file=None): + def run_request(self, data): url = self._replace_vars(data["url"]) if "data" in data: post_data = self._replace_vars(json.dumps(data["data"])) @@ -292,9 +292,6 @@ def _polling(self, item, response): return False, response def execute(self, new_hire, params): - # Only one file can be used per integration - file = None - self.params = params self.params["responses"] = [] self.params["files"] = {} @@ -313,7 +310,7 @@ def execute(self, new_hire, params): # Run all requests for item in self.manifest["execute"]: - success, response = self.run_request(item, file=file) + success, response = self.run_request(item) # check if we need to poll before continuing if polling := item.get("polling", False):