Use revision instead of path for revision

This commit is contained in:
René Pfeuffer
2018-10-10 10:13:50 +02:00
parent 0bd9ccd3d5
commit 8daf477641

View File

@@ -11,7 +11,7 @@ public class BrowserResultToFileObjectDtoMapper {
private FileObjectToFileObjectDtoMapper fileObjectToFileObjectDtoMapper;
public FileObjectDto map(BrowserResult browserResult, NamespaceAndName namespaceAndName, String path) {
FileObjectDto fileObjectDto = fileObjectToFileObjectDtoMapper.map(browserResult.getFile(), namespaceAndName, path);
FileObjectDto fileObjectDto = fileObjectToFileObjectDtoMapper.map(browserResult.getFile(), namespaceAndName, browserResult.getRevision());
fileObjectDto.setRevision( browserResult.getRevision() );
return fileObjectDto;
}