Skip to content

Commit

Permalink
Deep copy the WAZUH_DEFAULT_APP_CONFIG object
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Aug 8, 2022
1 parent 00b9f03 commit 4bb0519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/services/resolves/get-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { WAZUH_DEFAULT_APP_CONFIG } from '../../../common/constants';

export async function getWzConfig($q, genericReq, wazuhConfig) {
const defaultConfig = WAZUH_DEFAULT_APP_CONFIG;
const defaultConfig = { ...WAZUH_DEFAULT_APP_CONFIG };

try {
const config = await genericReq.request('GET', '/utils/configuration', {});
Expand Down

0 comments on commit 4bb0519

Please sign in to comment.