Skip to content

Commit

Permalink
fix: is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Apr 11, 2024
1 parent 9c337b2 commit 3f3394e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/supertokens/config/CoreConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,12 +847,12 @@ public static ArrayList<ConfigFieldInfo> getConfigFieldsInfo(Main main, TenantId
}

boolean isConfigYamlOnly = field.isAnnotationPresent(ConfigYamlOnly.class);
boolean isNullable = field.isAnnotationPresent(Nullable.class);

JsonElement value = tenantConfig.get(field.getName());

boolean isSaasProtected = false; // TODO
JsonElement defaultValue = defaultConfig.get(field.getName());
boolean isNullable = defaultValue == null;

result.add(new ConfigFieldInfo(
key, valueType, value, description, isSaasProtected, isDifferentAcrossTenants,
Expand Down

0 comments on commit 3f3394e

Please sign in to comment.