mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Fix manticore indentifiers
This commit is contained in:
@@ -2748,7 +2748,7 @@ class ProcessAdditional
|
||||
if (config('nntmux.elasticsearch_enabled') === true) {
|
||||
$this->elasticsearch->deleteRelease($id);
|
||||
} else {
|
||||
$this->manticore->deleteRelease([$id]);
|
||||
$this->manticore->deleteRelease(['i' => $id, 'g' => $guid]);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// ignore index delete failures
|
||||
|
||||
@@ -147,7 +147,8 @@ class DeleteReleases extends Command
|
||||
DB::delete('DELETE FROM releases WHERE id = ?', [$releaseId]);
|
||||
|
||||
// Delete from search indexes
|
||||
ManticoreSearch::deleteRelease($releaseId);
|
||||
$identifiers = ['id' => $releaseId, 'g' => $release->guid];
|
||||
ManticoreSearch::deleteRelease($identifiers);
|
||||
ElasticSearchSiteSearch::deleteRelease($releaseId);
|
||||
|
||||
$deleted++;
|
||||
|
||||
Reference in New Issue
Block a user