Skip to content

Commit

Permalink
Remove relative_dirname from CDB List (#6458)
Browse files Browse the repository at this point in the history
* Remove relative_dirname

* Add changelog
  • Loading branch information
asteriscos authored Feb 29, 2024
1 parent 97aa0ed commit 568f1e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to the Wazuh app project will be documented in this file.

- Support for Wazuh 4.7.3

### Fixed

- Fixed CDB List import file feature [#6458](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6458)

## Wazuh v4.7.2 - OpenSearch Dashboards 2.8.0 - Revision 02

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ResourcesHandler {
fileName: string,
content: string,
overwrite: boolean,
relativeDirname: string,
relativeDirname?: string,
) {
try {
const result = await WzRequest.apiReq(
Expand All @@ -102,7 +102,9 @@ export class ResourcesHandler {
{
params: {
overwrite: overwrite,
relative_dirname: relativeDirname,
...(this.resource !== 'lists'
? { relative_dirname: relativeDirname }
: {}),
},
body: content.toString(),
origin: 'raw',
Expand All @@ -119,7 +121,7 @@ export class ResourcesHandler {
* @param {Resource} resource
* @param {String} fileName
*/
async deleteFile(fileName: string, relativeDirname: string = '') {
async deleteFile(fileName: string, relativeDirname?: string) {
try {
const result = await WzRequest.apiReq(
'DELETE',
Expand Down

0 comments on commit 568f1e2

Please sign in to comment.