Skip to content

Commit

Permalink
Small code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Aug 9, 2024
1 parent 0967411 commit a5ac196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/Controller/PublicationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace OCA\OpenCatalogi\Controller;

use Elastic\Elasticsearch\Client;
use GuzzleHttp\Exception\GuzzleException;
use OCA\OpenCatalogi\Db\AttachmentMapper;
use OCA\opencatalogi\lib\Db\Publication;
Expand Down Expand Up @@ -115,7 +114,7 @@ public function index(ObjectService $objectService, SearchService $searchService
$sort = $searchService->createSortForMySQL(filters: $filters);
$filters = $searchService->unsetSpecialQueryParams(filters: $filters);

return new JSONResponse(['results' => $this->publicationMapper->findAll(limit: null, offset: null, filters: $filters, searchConditions: $searchConditions, searchParams: $searchParams, sort: $sort)]);
return new JSONResponse(['results' => $this->publicationMapper->findAll(filters: $filters, searchConditions: $searchConditions, searchParams: $searchParams, sort: $sort)]);
}

$filters = $searchService->createMongoDBSearchFilter(filters: $filters, fieldsToSearch: $fieldsToSearch);
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/PublicationMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function findAll(?int $limit = null, ?int $offset = null, ?array $filters
$qb->addOrderBy($field, $direction);
}
}

return $this->findEntities(query: $qb);
}

Expand Down

0 comments on commit a5ac196

Please sign in to comment.