refs #2591. new response. Added job_id
parent
3c78984217
commit
4a4771f8eb
|
@ -89,8 +89,9 @@ readonly class ImageProcessor implements ProcessorInterface
|
|||
}
|
||||
|
||||
if ($response instanceof JsonResponse && $response->getStatusCode() === 200) {
|
||||
$jobContent = json_decode($response->getContent(), true);
|
||||
return new JsonResponse(data: $jobContent, status: Response::HTTP_OK);
|
||||
$jobContent = json_decode($response->getContent(), true, 512, JSON_UNESCAPED_SLASHES);
|
||||
$jsonString = json_encode($jobContent, JSON_UNESCAPED_SLASHES);
|
||||
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
|
||||
}
|
||||
|
||||
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
|
||||
|
|
|
@ -76,13 +76,13 @@ readonly class PartitionProcessor implements ProcessorInterface
|
|||
|
||||
$response = $this->partitionAssistantAction->__invoke($data);
|
||||
|
||||
// Si hay una respuesta exitosa, devolvemos el contenido del job ID
|
||||
if ($response instanceof JsonResponse && $response->getStatusCode() === 200) {
|
||||
$jobContent = json_decode($response->getContent(), true);
|
||||
return new JsonResponse(data: $jobContent, status: Response::HTTP_OK);
|
||||
$jobContent = json_decode($response->getContent(), true, 512, JSON_UNESCAPED_SLASHES);
|
||||
$jsonString = json_encode($jobContent, JSON_UNESCAPED_SLASHES);
|
||||
return new JsonResponse($jsonString, Response::HTTP_OK, [], true);
|
||||
}
|
||||
|
||||
return new JsonResponse('OK', Response::HTTP_NO_CONTENT);
|
||||
return new JsonResponse(data: ['/clients/' . $image->getClient()->getUuid() => ['headers' => []]], status: Response::HTTP_OK);
|
||||
}
|
||||
|
||||
private function processDelete($data, Operation $operation, array $uriVariables = [], array $context = []): null
|
||||
|
|
Loading…
Reference in New Issue