Skip to content

Commit 89e90bc

Browse files
committed
[BUGFIX] Use public_id_hash in CloudinaryResourceService::getResource()
1 parent 5c0cc32 commit 89e90bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Classes/Services/CloudinaryResourceService.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ public function getResource(string $publicId): array
6565
->where(
6666
$query->expr()->eq('storage', $this->storage->getUid()),
6767
$query->expr()->eq(
68-
'public_id',
69-
$query->expr()->literal($publicId)
68+
'public_id_hash',
69+
$query->expr()->literal(sha1($publicId))
7070
)
71-
);
71+
)
72+
->setMaxResults(1);
7273

7374
$resource = $query->execute()->fetch();
7475
return $resource

0 commit comments

Comments
 (0)