This repository was archived by the owner on Nov 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function delete(Collection $models)
7171
7272 if ($ documentRefresh = config ('scout_elastic.document_refresh ' )) {
7373 $ bulkPayload ->set ('refresh ' , $ documentRefresh );
74- }
74+ }
7575
7676 $ bulkPayload ->set ('client.ignore ' , 404 );
7777
Original file line number Diff line number Diff line change @@ -53,11 +53,10 @@ public function delete(Collection $models)
5353 $ models ->each (function ($ model ) {
5454 $ payload = new DocumentPayload ($ model );
5555
56-
5756 if ($ documentRefresh = config ('scout_elastic.document_refresh ' )) {
5857 $ payload ->set ('refresh ' , $ documentRefresh );
5958 }
60-
59+
6160 $ payload ->set ('client.ignore ' , 404 );
6261
6362 ElasticClient::delete ($ payload ->get ());
Original file line number Diff line number Diff line change @@ -197,9 +197,9 @@ public function testDeleteWithSpecifiedDocumentRefreshOption()
197197 ],
198198 ]);
199199
200- (new SingleIndexer ())
200+ (new SingleIndexer ())
201201 ->delete ($ this ->models );
202202
203- $ this ->addToAssertionCount (1 );
203+ $ this ->addToAssertionCount (1 );
204204 }
205205}
You can’t perform that action at this time.
0 commit comments