From 5028a6340b92f4b171ded1908df952951bc17b2b Mon Sep 17 00:00:00 2001 From: Arthur de Moulins Date: Sat, 16 Nov 2024 14:57:40 +0100 Subject: [PATCH] fix removebg integration data normalization --- databox/api/src/Integration/RemoveBg/RemoveBgClient.php | 1 - databox/api/src/Integration/RemoveBg/RemoveBgIntegration.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/databox/api/src/Integration/RemoveBg/RemoveBgClient.php b/databox/api/src/Integration/RemoveBg/RemoveBgClient.php index 31b50e472..88f30a8dd 100644 --- a/databox/api/src/Integration/RemoveBg/RemoveBgClient.php +++ b/databox/api/src/Integration/RemoveBg/RemoveBgClient.php @@ -24,7 +24,6 @@ public function getBgRemoved(File $file, string $apiKey): string } $path = $this->fileFetcher->getFile($file); - $md5 = md5_file($path); $cacheFile = sprintf('%s/%s', $this->cacheDir, $md5); diff --git a/databox/api/src/Integration/RemoveBg/RemoveBgIntegration.php b/databox/api/src/Integration/RemoveBg/RemoveBgIntegration.php index a1bb01b7c..2de57b255 100644 --- a/databox/api/src/Integration/RemoveBg/RemoveBgIntegration.php +++ b/databox/api/src/Integration/RemoveBg/RemoveBgIntegration.php @@ -9,6 +9,7 @@ use App\Integration\Action\FileUserActionsTrait; use App\Integration\IntegrationConfig; use App\Integration\IntegrationContext; +use App\Integration\IntegrationDataTransformerInterface; use App\Integration\PusherTrait; use App\Integration\RemoveBg\Message\RemoveBgCall; use App\Integration\UserActionsIntegrationInterface; @@ -19,7 +20,7 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Messenger\MessageBusInterface; -class RemoveBgIntegration extends AbstractIntegration implements WorkflowIntegrationInterface, UserActionsIntegrationInterface +class RemoveBgIntegration extends AbstractIntegration implements IntegrationDataTransformerInterface, WorkflowIntegrationInterface, UserActionsIntegrationInterface { use PusherTrait; use FileUserActionsTrait;