This commit is contained in:
Efstratios Giannopoulos 2024-05-17 10:09:11 +03:00
parent ae573e9de2
commit 1a75344727
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public class ZenodoDepositServiceImpl implements ZenodoDepositService {
String newVersionUrl = links.get(ZENODO_LINKS_LATEST_DRAFT) + "/actions/newversion" + "?access_token=" + zenodoToken;
logger.debug("new version url: " + newVersionUrl);
createResponse = zenodoClient.post().uri(newVersionUrl)
.bodyValue(null).exchangeToMono(mono ->
.exchangeToMono(mono ->
mono.statusCode().isError() ?
mono.createException().flatMap(Mono::error) :
mono.bodyToMono(new ParameterizedTypeReference<Map<String, LinkedHashMap<String, String>>>() {})