mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
second arg to axios post is the post data
This commit is contained in:
parent
d713ce0cf6
commit
8dfcb733c6
1 changed files with 4 additions and 8 deletions
|
@ -63,11 +63,9 @@ export class KibanaServerUiSettings {
|
|||
this.log.debug('replacing kibana config doc: %j', doc);
|
||||
|
||||
await this.x.post('/api/kibana/settings', {
|
||||
data: {
|
||||
changes: {
|
||||
...this.defaults,
|
||||
...doc,
|
||||
},
|
||||
changes: {
|
||||
...this.defaults,
|
||||
...doc,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -78,9 +76,7 @@ export class KibanaServerUiSettings {
|
|||
async update(updates: Record<string, any>) {
|
||||
this.log.debug('applying update to kibana config: %j', updates);
|
||||
await this.x.post('/api/kibana/settings', {
|
||||
data: {
|
||||
changes: updates,
|
||||
},
|
||||
changes: updates,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue