Skip to content

Commit aa9131f

Browse files
[Reporting] Add Refresh parameter to Delete query (#78516)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent ca2fef3 commit aa9131f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/reporting/server/routes/lib/jobs_query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export function jobsQueryFactory(reportingCore: ReportingCore) {
162162

163163
async delete(deleteIndex: string, id: string) {
164164
try {
165-
const query = { id, index: deleteIndex };
165+
const query = { id, index: deleteIndex, refresh: true };
166166
return callAsInternalUser('delete', query);
167167
} catch (error) {
168168
throw new Error(

0 commit comments

Comments
 (0)