Skip to content

Commit

Permalink
Merge branch 'release/1.7.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Echron committed Mar 3, 2022
2 parents 78a340b + f4b7824 commit cb58f41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Endpoint/StorageEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public function setItem(string $projectEnvironmentId, string $storageType, Stora
if (isset($rawResult['data']) && isset($rawResult['data']['success'])) {
return $rawResult['data']['success'];
}
if (isset($rawResult['errors']) && count($rawResult['errors']) > 0) {
return false;
}
throw new \Exception('Invalid response');
}

Expand Down Expand Up @@ -136,7 +139,9 @@ public function deleteItem(string $projectEnvironmentId, string $storageType, st
if (isset($rawItem['data']) && isset($rawItem['data']['success'])) {
return $rawItem['data']['success'];
}

if (isset($rawResult['errors']) && count($rawResult['errors']) > 0) {
return false;
}
throw new \Exception('Invalid response');
}

Expand Down Expand Up @@ -188,7 +193,9 @@ public function clearPool(string $projectEnvironmentId, string $storageType, ?st
if (isset($rawItem['data']) && isset($rawItem['data']['success'])) {
return $rawItem['data']['success'];
}

if (isset($rawResult['errors']) && count($rawResult['errors']) > 0) {
return false;
}
throw new \Exception('Invalid response');
}
}

0 comments on commit cb58f41

Please sign in to comment.