updated the setDescription with open(itemId).asItem()

This commit is contained in:
Francesco Mangiacrapa 2020-07-20 17:32:58 +02:00
parent d203bf71e9
commit b66c0b3b54
1 changed files with 1 additions and 1 deletions

View File

@ -937,7 +937,7 @@ public class StorageHubClientService {
Validate.notNull(itemId, "Bad request the itemId is null");
setContextProviders(scope, authorizationToken);
shClient.open(itemId).asFile().setDescription(newDescription);
shClient.open(itemId).asItem().setDescription(newDescription);
return shClient.open(itemId).asFile().get().getDescription();
}