Skip to content
Snippets Groups Projects
Commit e53b94e0 authored by srosse's avatar srosse
Browse files

OO-4146: fix the path to search the newest files of course elements

parent 31e282d2
No related branches found
No related tags found
No related merge requests found
......@@ -284,12 +284,16 @@ public class VFSRepositoryServiceImpl implements VFSRepositoryService, GenericEv
@Override
public List<VFSMetadata> getNewest(VFSMetadata ancestorMetadata, int maxResults) {
return metadataDao.getNewest(ancestorMetadata.getRelativePath(), maxResults);
File file = toFile(ancestorMetadata);
String path = getRelativePath(file);
return metadataDao.getNewest(path, maxResults);
}
@Override
public List<VFSMetadata> getMostDownloaded(VFSMetadata ancestorMetadata, int maxResults) {
return metadataDao.getMostDownloaded(ancestorMetadata.getRelativePath(), maxResults);
File file = toFile(ancestorMetadata);
String path = getRelativePath(file);
return metadataDao.getMostDownloaded(path, maxResults);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment