Skip to content

Commit

Permalink
Merge pull request #47 from werkbot/hotfix/2.0.4/moved-alteration-mes…
Browse files Browse the repository at this point in the history
…sage

On Search Index Task, moved alteration message
  • Loading branch information
aletail committed Aug 8, 2024
2 parents e1a0b20 + 0c9abbe commit 806f8b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"license": "MIT",
"homepage": "https://github.com/werkbot/silverstripe-module-search",
"require": {
"php": "^8.0",
"silverstripe/cms": "^4",
"silverstripe/framework": "^4",
"php": "^8.0 || ^8.1",
"silverstripe/cms": "^4 || ^5",
"silverstripe/framework": "^4 || ^5",
"teamtnt/tntsearch": "v4.2.1",
"ext-sqlite3": "*",
"symbiote/silverstripe-queuedjobs": "^4.12"
"symbiote/silverstripe-queuedjobs": "^4.12 || ^5.1"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 1 addition & 2 deletions src/Tasks/SearchIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ public function run($request)
foreach ($classes as $title => $className) {
$searchableClass = singleton($className);
if ($query = $searchableClass->getIndexQuery()) {
DB::alteration_message('Indexing...' . $className, 'created');
$indexer->query($query);
$indexer->run();
DB::alteration_message('Indexing...' . $className, 'created');
}
}
}
}

0 comments on commit 806f8b2

Please sign in to comment.