Fix return object of "getUrlsOfUserRepos" endpoint.

This commit is contained in:
Lampros Smyrnaios 2023-01-30 16:25:21 +02:00
parent 97d81ce478
commit de2ac5631f
1 changed files with 2 additions and 2 deletions

View File

@ -704,8 +704,8 @@ public class RepositoryServiceImpl implements RepositoryService {
RequestFilter requestFilter = new RequestFilter();
requestFilter.setRegisteredby(userEmail);
Object result = restTemplate.postForObject(uriComponents.toUri(), requestFilter, String[].class);
return (result != null) ? Collections.singletonList(result.toString()) : null;
String[] result = restTemplate.postForObject(uriComponents.toUri(), requestFilter, String[].class);
return (result != null) ? Arrays.asList(result) : null;
}
private Vocabulary getVocabulary(String vocName) {