Skip to content

Commit

Permalink
[Code] force refresh the document when create code node info
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedragon committed Feb 13, 2019
1 parent c6419d1 commit 9d8b74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/code/server/code_node_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class CodeNodeClient {
}

public async createNodeInfo(info: CodeNodeInfo): Promise<CodeNodeInfo> {
await this.objectsClient.create(CODE_NODE_TYPE, info, { id: CODE_NODE_ID });
await this.objectsClient.create(CODE_NODE_TYPE, info, { id: CODE_NODE_ID, refresh: true });
return (await this.getCodeNodeInfo()) as CodeNodeInfo;
}

Expand Down

0 comments on commit 9d8b74c

Please sign in to comment.