Skip to content

Commit

Permalink
Fixed bug in queue jobs using unknown method
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongxuongminh committed Apr 16, 2019
1 parent bc667e0 commit 7e38601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/queue/DeleteSearchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function resolve(array $models): void
if (!empty($models)) {

$modelClass = get_class(current($models));
$modelClass::getSearchable()->createSearcher($modelClass::getDb())->delete($models);
$modelClass::getSearchable()->delete($models);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/queue/MakeSearchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function resolve(array $models): void
if (!empty($models)) {

$modelClass = get_class(current($models));
$modelClass::getSearchable()->createSearcher($modelClass::getDb())->upsert($models);
$modelClass::getSearchable()->upsert($models);
}
}

Expand Down

0 comments on commit 7e38601

Please sign in to comment.