Skip to content

Commit 8c485d6

Browse files
committed
Update Builder.php
Correct issue on deletion
1 parent 1a7c536 commit 8c485d6

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

src/Support/Builder.php

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -758,30 +758,12 @@ protected function processMultiPutResponse($response)
758758

759759
protected function processIndividualDeleteResponse($response)
760760
{
761-
if($this->getApiDataField() != null){
762-
$data = $response->json()[$this->getApiDataField()];
763-
} else {
764-
$data = $response->json();
765-
}
766-
if(isset($data[0])){
767-
return $this->resource->updateFromBuilder($this->resource->passOnAttributes($data[0]));
768-
} else {
769-
return $this->resource->updateFromBuilder($this->resource->passOnAttributes($data));
770-
}
761+
return true;
771762
}
772763

773764
protected function processMultiDeleteResponse($response)
774765
{
775-
// if($this->getApiDataField() != null){
776-
// $data = $response->json()[$this->getApiDataField()];
777-
// } else {
778-
// $data = $response->json();
779-
// }
780-
// if(isset($data[0])){
781-
// return $this->resource->newFromBuilder($this->resource->passOnAttributes($data[0]));
782-
// } else {
783-
// return $this->resource->newFromBuilder($this->resource->passOnAttributes($data));
784-
// }
766+
return true;
785767
}
786768

787769
public function prepareHttpErrorMessage($response)

0 commit comments

Comments
 (0)