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
public void onDelete(Content content) {
public void onDelete(String id) {
log.debug("deleting");
IClient storageClient = getStorageClient(AuthorizationProvider.instance.get().getClient().getId()).getClient();
storageClient.remove().RFileById(content.getStorageId());
storageClient.remove().RFileById(id);
}
private static StorageClient getStorageClient(String login){