Fixed 200 returns when activities are empty and since is a future date

merge-requests/7/head
Chatura Dilan Perera 8 years ago
parent cd77ce692e
commit f29b9e84f2

@ -122,7 +122,7 @@ public class ActivityProviderServiceImpl implements ActivityInfoProviderService
int count = dmService.getActivityCountUpdatedAfter(timestamp); int count = dmService.getActivityCountUpdatedAfter(timestamp);
activityList.setCount(count); activityList.setCount(count);
if (activities == null || activities.size() == 0) { if (activities == null || activities.size() == 0) {
if (isIfModifiedSinceSet || isSinceSet) { if (isIfModifiedSinceSet) {
return Response.notModified().build(); return Response.notModified().build();
} }
} }

Loading…
Cancel
Save