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

revert-70aa11f8
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