diff --git a/CHANGELOG.md b/CHANGELOG.md index d57e0314b..1031ff31a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/build.gradle b/build.gradle index 05da3a503..83265aeea 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" } // } //} -version = "6.0.10" +version = "6.0.11" repositories { diff --git a/ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java b/ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java index 2b0a94dba..8efe42552 100644 --- a/ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java +++ b/ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java @@ -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"; diff --git a/src/main/java/io/supertokens/Main.java b/src/main/java/io/supertokens/Main.java index 467db6781..8df83bd5d 100644 --- a/src/main/java/io/supertokens/Main.java +++ b/src/main/java/io/supertokens/Main.java @@ -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.