fixed called method

This commit is contained in:
Luca Frosini 2022-10-04 14:26:14 +02:00
parent 099aefc4f5
commit e6856b7653
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ public class Item extends REST<CKANPackage> implements org.gcube.gcat.api.interf
}
if(countOnly) {
setCalledMethod("GET /" + COLLECTION_PARAMETER);
CKANPackage ckan = getInstance();
int size = ckan.count();
return createCountJson(size);