Skip to content

Commit a7b70a8

Browse files
Allow to use refresh: false with document:upsert|deleteByQuery (#717)
As mentioned in #700 , the refresh option type was not well defined in this section. This as been fixed by @Aschen in the past month but when checking the code before closing the issue, I noticed there were still two action of the document controller that still have a wrongly defined type for this field. In order to close #700, this PR aim to update these
1 parent f1359dd commit a7b70a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controllers/Document.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ export interface ArgsDocumentControllerDelete extends ArgsDefault {
840840
}
841841

842842
export interface ArgsDocumentControllerDeleteByQuery extends ArgsDefault {
843-
refresh?: string;
843+
refresh?: "wait_for" | "false";
844844
silent?: boolean;
845845
lang?: string;
846846
}
@@ -933,7 +933,7 @@ export interface ArgsDocumentControllerUpdateByQuery extends ArgsDefault {
933933
export interface ArgsDocumentControllerUpsert<TKDocumentContent>
934934
extends ArgsDefault {
935935
default?: Partial<TKDocumentContent>;
936-
refresh?: string;
936+
refresh?: "wait_for" | "false";
937937
silent?: boolean;
938938
retryOnConflict?: boolean;
939939
source?: boolean;

0 commit comments

Comments
 (0)