Commit 7fb442b9c36ec12ac165fa743aaf4d4b05be27d4
Committed by
GitHub
Merge pull request #3703 from YevhenBondarenko/feature/api-usage-state
apiUsageState improvements
Showing
1 changed file
with
4 additions
and
4 deletions
... | ... | @@ -86,13 +86,13 @@ public class ApiUsageStateServiceImpl extends AbstractEntityService implements A |
86 | 86 | TenantProfile tenantProfile = tenantProfileDao.findById(tenantId, tenant.getTenantProfileId().getId()); |
87 | 87 | TenantProfileConfiguration configuration = tenantProfile.getProfileData().getConfiguration(); |
88 | 88 | List<TsKvEntry> apiUsageStates = new ArrayList<>(); |
89 | - apiUsageStates.add(new BasicTsKvEntry(apiUsageState.getCreatedTime(), | |
89 | + apiUsageStates.add(new BasicTsKvEntry(saved.getCreatedTime(), | |
90 | 90 | new StringDataEntry(ApiFeature.TRANSPORT.getApiStateKey(), ApiUsageStateValue.ENABLED.name()))); |
91 | - apiUsageStates.add(new BasicTsKvEntry(apiUsageState.getCreatedTime(), | |
91 | + apiUsageStates.add(new BasicTsKvEntry(saved.getCreatedTime(), | |
92 | 92 | new StringDataEntry(ApiFeature.DB.getApiStateKey(), ApiUsageStateValue.ENABLED.name()))); |
93 | - apiUsageStates.add(new BasicTsKvEntry(apiUsageState.getCreatedTime(), | |
93 | + apiUsageStates.add(new BasicTsKvEntry(saved.getCreatedTime(), | |
94 | 94 | new StringDataEntry(ApiFeature.RE.getApiStateKey(), ApiUsageStateValue.ENABLED.name()))); |
95 | - apiUsageStates.add(new BasicTsKvEntry(apiUsageState.getCreatedTime(), | |
95 | + apiUsageStates.add(new BasicTsKvEntry(saved.getCreatedTime(), | |
96 | 96 | new StringDataEntry(ApiFeature.JS.getApiStateKey(), ApiUsageStateValue.ENABLED.name()))); |
97 | 97 | tsService.save(tenantId, saved.getId(), apiUsageStates, 0L); |
98 | 98 | ... | ... |