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

4.x.x
Chatura Dilan Perera 8 years ago
parent cd77ce692e
commit f29b9e84f2

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

Loading…
Cancel
Save