Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Dec 30, 2024
1 parent 328ad0d commit ed2aef4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ export class ClientFeatureToggleDelta {

const hasDelta = this.delta[environment] !== undefined;


if (!hasDelta) {
await this.initEnvironmentDelta(environment);
}
Expand All @@ -171,11 +170,6 @@ export class ClientFeatureToggleDelta {
}

// TODO: 19.12 this logic seems to be not logical, when no revisionId is coming, it should not go to db, but take latest from cache

console.log("ENVIRONMENT", environment);
console.log("DELTA CACHE", this.delta[environment]);


// Should get the latest state if revision does not exist or if sdkRevision is not present
// We should be able to do this without going to the database by merging revisions from the delta with
// the base case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ test('should get 304 if asked for latest revision', async () => {
// @ts-ignore
app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14;


await app.request
.set('If-None-Match', '14')
.get('/api/client/delta')
Expand Down

0 comments on commit ed2aef4

Please sign in to comment.