Fetch snapshots in edge-case where version-id is zero

This commit is contained in:
Shane Kilkelly 2019-01-09 12:23:00 +00:00
parent 766dcc379c
commit ba8ba001d6

View file

@ -97,7 +97,7 @@ public class SnapshotApiFacade {
= api.getSavedVers(oauth2, projectName);
GetDocResult latestDoc = SnapshotApi.getResult(getDoc);
int latest = latestDoc.getVersionID();
if (latest > version) {
if (latest > version || (latest == 0 && version == 0)) {
for (
SnapshotInfo snapshotInfo :
SnapshotApi.getResult(savedVers).getSavedVers()