Skip to content

Commit

Permalink
Pin ilbee/csvreponse to ^1.2.0, fix controller (#4107)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-m committed Feb 5, 2024
1 parent a34c2ab commit 4d2a494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"getdkan/procrastinator": "^5.0.0",
"getdkan/rooted-json-data": "^0.2.1",
"guzzlehttp/guzzle" : "^6.5.8 || ^7.4.5",
"ilbee/csv-response": "^1.1.1",
"ilbee/csv-response": "^1.2.0",
"justinrainbow/json-schema": "^5.2",
"m1x0n/opis-json-schema-error-presenter": "^0.5.3",
"fylax/forceutf8": "~3.0",
Expand Down
4 changes: 2 additions & 2 deletions modules/datastore/src/Controller/QueryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Drupal\datastore\Service\DatastoreQuery;
use RootedData\RootedJsonData;
use Ilbee\CSVResponse\CSVResponse as CsvResponse;
use Ilbee\CSVResponse\CSVResponse;
use Symfony\Component\HttpFoundation\ParameterBag;

/**
Expand Down Expand Up @@ -37,7 +37,7 @@ public function formatResponse(
) {
switch ($datastoreQuery->{"$.format"}) {
case 'csv':
$response = new CsvResponse($result->{"$.results"}, 'data', ',');
$response = new CSVResponse($result->{"$.results"}, 'data.csv', ',');
return $this->addCacheHeaders($response);

case 'json':
Expand Down

0 comments on commit 4d2a494

Please sign in to comment.