Skip to content

Commit

Permalink
CROWDIN: nelson pull doesn't work we have an error 500
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenVAIDIE committed Mar 22, 2024
1 parent e8930e8 commit 03a91be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Akeneo/Crowdin/Api/AddFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function execute(): string
$data = [
'headers' => [
'Content-Type' => 'multipart/form-data',
'Authorization' => 'Bearer 1234'
'Authorization' => 'Bearer ' . $this->client->getProjectApiKey(),
],
'body' => $data
];
Expand Down
2 changes: 1 addition & 1 deletion src/Akeneo/Crowdin/Api/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function execute(): string
}

$filePath = $this->getCopyDestination() . '/' . $this->getPackage();
$response = $this->client->getHttpClient()->request('GET', $path, ['headers' => ['Authorization' => 'Bearer 1234']]);
$response = $this->client->getHttpClient()->request('GET', $path, ['headers' => ['Authorization' => 'Bearer '.$this->client->getProjectApiKey()]]);

$fileContent = $response->getContent();
file_put_contents($filePath, $fileContent);
Expand Down

0 comments on commit 03a91be

Please sign in to comment.