mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(appconfigdata): return empty payload on repeat polls (#3295)
This commit is contained in:
1 parent
520568ef93
commit
47d96f619f
3 files changed
+115
-30
No files matched your search
+2
-1
@@ -80,9 +80,10 @@ public class AppConfigDataService {
|
||||
String activeVersion = appConfigService.getActiveVersion(session.getEnvironmentId(), session.getConfigurationProfileId());
|
||||
|
||||
HostedConfigurationVersion version = null;
|
||||
if (activeVersion != null) {
|
||||
if (activeVersion != null && !activeVersion.equals(session.getLastConfigurationVersion())) {
|
||||
try {
|
||||
version = appConfigService.getHostedConfigurationVersion(session.getApplicationId(), session.getConfigurationProfileId(), Integer.parseInt(activeVersion));
|
||||
session.setLastConfigurationVersion(activeVersion);
|
||||
} catch (Exception e) {
|
||||
LOG.warnv("Active version {0} not found for session {1}", activeVersion, session.getId());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user