Skip to content

Commit

Permalink
fix: ee featureflag cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Aug 31, 2023
1 parent 6913806 commit ba98fff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]

## [6.0.11] - 2023-08-16

- Fixed feature flag cron job

## [6.0.10] - 2023-08-16

- Fixed an encoding/decoding issue for certain access token payloads
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" }
// }
//}

version = "6.0.10"
version = "6.0.11"


repositories {
Expand Down
4 changes: 2 additions & 2 deletions ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
import java.util.List;

public class EEFeatureFlag implements io.supertokens.featureflag.EEFeatureFlagInterface {
public static final int INTERVAL_BETWEEN_SERVER_SYNC = 1000 * 3600 * 24; // 1 day.
private static final long INTERVAL_BETWEEN_DB_READS = (long) 1000 * 3600 * 4; // 4 hour.
public static final int INTERVAL_BETWEEN_SERVER_SYNC = 3600 * 24; // 1 day (in seconds).
private static final long INTERVAL_BETWEEN_DB_READS = (long) 1000 * 3600 * 4; // 4 hour (in millis).
public static final String REQUEST_ID = "licensecheck";

public static final String FEATURE_FLAG_KEY_IN_DB = "FEATURE_FLAG";
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/supertokens/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ private void init() throws IOException, StorageQueryException {
}
}
}
FeatureFlag.initForBaseTenant(this, CLIOptions.get(this).getInstallationPath() + "ee/");

MultitenancyHelper.init(this);
FeatureFlag.initForBaseTenant(this, CLIOptions.get(this).getInstallationPath() + "ee/");

try {
// load all configs for each of the tenants.
Expand Down

0 comments on commit ba98fff

Please sign in to comment.