diff --git a/CHANGELOG.md b/CHANGELOG.md index ee09984e75..58cc6b3739 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to the Wazuh app project will be documented in this file. ### Fixed +- Removed the unexpected `delay` parameter on the server API requests [#6778](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6778) - Fixed home KPI links with custom or index pattern whose title is different to the id [#6777](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6777) ## Wazuh v4.8.0 - OpenSearch Dashboards 2.10.0 - Revision 12 diff --git a/plugins/main/server/controllers/wazuh-api.ts b/plugins/main/server/controllers/wazuh-api.ts index cc7bf6cf69..1bf897ae00 100644 --- a/plugins/main/server/controllers/wazuh-api.ts +++ b/plugins/main/server/controllers/wazuh-api.ts @@ -721,6 +721,11 @@ export class WazuhApiCtrl { } const delay = (data || {}).delay || 0; if (delay) { + // Remove the delay parameter that is used to add the sever API request to the queue job. + // This assumes the delay parameter is not used as part of the server API request. If it + // was expected to do a request with a 'delay' parameter then we would have to search a + // way to differenciate if the parameter is related to job queue or API request. + delete data.delay; addJobToQueue({ startAt: new Date(Date.now() + delay), run: async () => {