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({
|
||||
index: DEFAULT_INDEX!,
|
||||
document: metadata,
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ export class SubFolderFileController extends Controller {
|
|||
await esClient.index({
|
||||
index: DEFAULT_INDEX!,
|
||||
document: metadata,
|
||||
refresh: "wait_for",
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue