Skip to content

Commit

Permalink
Add needed settings service
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Nov 25, 2024
1 parent c51788f commit 4e6c694
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/src/Job/BatchDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class BatchDelete extends AbstractJob
public function perform()
{
$api = $this->getServiceLocator()->get('Omeka\ApiManager');
$settings = $this->getServiceLocator()->get('Omeka\Settings');
$resource = $this->getArg('resource');
$query = $this->getArg('query', []);
$response = $api->search($resource, $query, ['returnScalar' => 'id']);
Expand Down

0 comments on commit 4e6c694

Please sign in to comment.