mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Fix typo saving api
This commit is contained in:
parent
4a33962f5f
commit
648498ada2
@ -141,7 +141,7 @@ module.exports = (server, options) => {
|
||||
|
||||
const settings = buildSettingsObject(req.payload);
|
||||
|
||||
const response = await wzWrapper.createWazuhIndexDocument(settings);
|
||||
const response = await wzWrapper.createWazuhIndexDocument(req,settings);
|
||||
|
||||
return reply({ statusCode: 200, message: 'ok', response });
|
||||
|
||||
|
@ -364,8 +364,9 @@ class ElasticWrapper{
|
||||
/**
|
||||
* Usually used to save a new Wazuh API entry
|
||||
* @param {*} doc
|
||||
* @param {*} req
|
||||
*/
|
||||
async createWazuhIndexDocument(doc) {
|
||||
async createWazuhIndexDocument(req,doc) {
|
||||
try {
|
||||
if(!doc) return Promise.reject(new Error('No valid document given'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user