From 21c9253a70b3bbcb8a104d446344970b4946e7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20=C4=8Cupi=C4=87?= Date: Mon, 23 Oct 2023 15:24:41 +0200 Subject: [PATCH] Fix typo in notify controller --- bundle/Controller/Callback/Cloudinary/Notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/Controller/Callback/Cloudinary/Notify.php b/bundle/Controller/Callback/Cloudinary/Notify.php index ad1ce0c3..1fee4e85 100644 --- a/bundle/Controller/Callback/Cloudinary/Notify.php +++ b/bundle/Controller/Callback/Cloudinary/Notify.php @@ -293,7 +293,7 @@ private function handleContextChanged(array $requestContent): void $filenameFromUrl = basename($publicId); try { $apiResource = Uploader::explicit( - $requestContent['to_public_id'], + CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getResourceId(), [ 'type' => CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getType(), 'resource_type' => CloudinaryRemoteId::fromRemoteId($resource->getRemoteId())->getResourceType(),