hotfix: wait for es response

This commit is contained in:
Methapon2001 2023-11-29 17:26:13 +07:00
parent da29ceecf1
commit 3671c1c50b
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 2 additions and 0 deletions

View file

@ -133,6 +133,7 @@ export class FileController extends Controller {
await esClient.index({
index: DEFAULT_INDEX!,
document: metadata,
refresh: "wait_for",
});
return {

View file

@ -137,6 +137,7 @@ export class SubFolderFileController extends Controller {
await esClient.index({
index: DEFAULT_INDEX!,
document: metadata,
refresh: "wait_for",
});
return {