浏览代码

set up url for V1 files deletion

Olivier Massot 1 年之前
父节点
当前提交
24e3a0cd8f
共有 1 个文件被更改,包括 4 次插入8 次删除
  1. 4 8
      src/Service/File/Storage/ApiLegacyStorage.php

+ 4 - 8
src/Service/File/Storage/ApiLegacyStorage.php

@@ -61,10 +61,8 @@ class ApiLegacyStorage implements FileStorageInterface
      */
     public function deleteOrganizationFiles(int $organizationId): void
     {
-        // TODO: change the url with the definitive one
-        $url = sprintf('api/files/organization/remove-all/%s', $organizationId);
-
-        // $this->apiLegacyRequestService->get($url);
+        $url = sprintf('/_internal/request/organization-files/delete/%s', $organizationId);
+        $this->apiLegacyRequestService->get($url);
     }
 
     /**
@@ -75,9 +73,7 @@ class ApiLegacyStorage implements FileStorageInterface
      */
     public function deletePersonFiles(int $personId): void
     {
-        // TODO: change the url with the definitive one
-        $url = sprintf('api/files/person/remove-all/%s', $personId);
-
-        // $this->apiLegacyRequestService->get($url);
+        $url = sprintf('/_internal/request/person-files/delete/%s', $personId);
+        $this->apiLegacyRequestService->get($url);
     }
 }