storagebackends takes ids on delete

This commit is contained in:
Lucio Lelii 2021-07-21 17:36:27 +02:00
parent aeb434dd06
commit 8929ff579c
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ public class GCubeStorageBackend implements StorageBackend {
} }
@Override @Override
public void onDelete(Content content) { public void onDelete(String id) {
log.debug("deleting"); log.debug("deleting");
IClient storageClient = getStorageClient(AuthorizationProvider.instance.get().getClient().getId()).getClient(); IClient storageClient = getStorageClient(AuthorizationProvider.instance.get().getClient().getId()).getClient();
storageClient.remove().RFileById(content.getStorageId()); storageClient.remove().RFileById(id);
} }
private static StorageClient getStorageClient(String login){ private static StorageClient getStorageClient(String login){