mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-02 21:41:28 +01:00
Order by different date in start date query
Affects issues: - Possibly fixed #2080
This commit is contained in:
parent
0071190820
commit
d967308afd
@ -90,7 +90,7 @@ public class AsyncJSONResolverService {
|
|||||||
|
|
||||||
// No new enough version, let's refresh and send old version of the file
|
// No new enough version, let's refresh and send old version of the file
|
||||||
updatedJSON = scheduleJSONForUpdate(timestamp, identifier, jsonCreator);
|
updatedJSON = scheduleJSONForUpdate(timestamp, identifier, jsonCreator);
|
||||||
storedJSON = getOldFromCache(timestamp, identifier);
|
storedJSON = getOldFromCache(timestamp, identifier).orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (storedJSON != null) {
|
if (storedJSON != null) {
|
||||||
@ -117,8 +117,8 @@ public class AsyncJSONResolverService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private JSONStorage.StoredJSON getOldFromCache(long newerThanTimestamp, String identifier) {
|
private Optional<JSONStorage.StoredJSON> getOldFromCache(long newerThanTimestamp, String identifier) {
|
||||||
return jsonStorage.fetchJsonMadeBefore(identifier, newerThanTimestamp).orElse(null);
|
return jsonStorage.fetchJsonMadeBefore(identifier, newerThanTimestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
private JSONStorage.StoredJSON getNewFromCache(long newerThanTimestamp, String identifier) {
|
private JSONStorage.StoredJSON getNewFromCache(long newerThanTimestamp, String identifier) {
|
||||||
|
Loading…
Reference in New Issue
Block a user