bug fix
This commit is contained in:
parent
ae573e9de2
commit
1a75344727
|
@ -184,7 +184,7 @@ public class ZenodoDepositServiceImpl implements ZenodoDepositService {
|
||||||
String newVersionUrl = links.get(ZENODO_LINKS_LATEST_DRAFT) + "/actions/newversion" + "?access_token=" + zenodoToken;
|
String newVersionUrl = links.get(ZENODO_LINKS_LATEST_DRAFT) + "/actions/newversion" + "?access_token=" + zenodoToken;
|
||||||
logger.debug("new version url: " + newVersionUrl);
|
logger.debug("new version url: " + newVersionUrl);
|
||||||
createResponse = zenodoClient.post().uri(newVersionUrl)
|
createResponse = zenodoClient.post().uri(newVersionUrl)
|
||||||
.bodyValue(null).exchangeToMono(mono ->
|
.exchangeToMono(mono ->
|
||||||
mono.statusCode().isError() ?
|
mono.statusCode().isError() ?
|
||||||
mono.createException().flatMap(Mono::error) :
|
mono.createException().flatMap(Mono::error) :
|
||||||
mono.bodyToMono(new ParameterizedTypeReference<Map<String, LinkedHashMap<String, String>>>() {})
|
mono.bodyToMono(new ParameterizedTypeReference<Map<String, LinkedHashMap<String, String>>>() {})
|
||||||
|
|
Loading…
Reference in New Issue