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;