App version mismatch handling between frontend and backend (#13368)

https://github.com/user-attachments/assets/d153f177-4d70-4ec6-8693-15413e550938
This commit is contained in:
Abdul Rahman
2025-07-24 01:37:02 +05:30
committed by GitHub
parent ed36b19af7
commit 30dd457313
14 changed files with 113 additions and 3 deletions
@@ -108,6 +108,9 @@ class PublicFeatureFlag {
@ObjectType()
export class ClientConfig {
@Field(() => String, { nullable: true })
appVersion?: string;
@Field(() => AuthProviders, { nullable: false })
authProviders: AuthProviders;
@@ -100,6 +100,7 @@ describe('ClientConfigService', () => {
const result = await service.getClientConfig();
expect(result).toEqual({
appVersion: '1.0.0',
billing: {
isBillingEnabled: true,
billingUrl: 'https://billing.example.com',
@@ -66,6 +66,7 @@ export class ClientConfigService {
}
const clientConfig: ClientConfig = {
appVersion: this.twentyConfigService.get('APP_VERSION'),
billing: {
isBillingEnabled: this.twentyConfigService.get('IS_BILLING_ENABLED'),
billingUrl: this.twentyConfigService.get('BILLING_PLAN_REQUIRED_LINK'),