hotfix: wait for es response
This commit is contained in:
parent
da29ceecf1
commit
3671c1c50b
2 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ export class FileController extends Controller {
|
||||||
await esClient.index({
|
await esClient.index({
|
||||||
index: DEFAULT_INDEX!,
|
index: DEFAULT_INDEX!,
|
||||||
document: metadata,
|
document: metadata,
|
||||||
|
refresh: "wait_for",
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ export class SubFolderFileController extends Controller {
|
||||||
await esClient.index({
|
await esClient.index({
|
||||||
index: DEFAULT_INDEX!,
|
index: DEFAULT_INDEX!,
|
||||||
document: metadata,
|
document: metadata,
|
||||||
|
refresh: "wait_for",
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue