fix: Add a back up for isAtomicPushAllowed as false (#33647)

This commit is contained in:
Nidhi 2024-06-26 10:01:30 +05:30 committed by GitHub
parent 519b53ea9b
commit 6edea92517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,9 @@ public class GitConfigCEImpl implements GitConfigCE {
@Override
public Mono<Boolean> getIsAtomicPushAllowed() {
return tenantService.getTenantConfiguration().map(tenant -> tenant.getTenantConfiguration()
.getIsAtomicPushAllowed());
return tenantService
.getTenantConfiguration()
.map(tenant -> tenant.getTenantConfiguration().getIsAtomicPushAllowed())
.switchIfEmpty(Mono.just(false));
}
}

View File

@ -54,7 +54,7 @@ public class TenantConfigurationCE implements Serializable {
Boolean isStrongPasswordPolicyEnabled;
private Boolean isAtomicPushAllowed;
private Boolean isAtomicPushAllowed = false;
public void addThirdPartyAuth(String auth) {
if (thirdPartyAuths == null) {