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:
@@ -108,6 +108,9 @@ class PublicFeatureFlag {
|
||||
|
||||
@ObjectType()
|
||||
export class ClientConfig {
|
||||
@Field(() => String, { nullable: true })
|
||||
appVersion?: string;
|
||||
|
||||
@Field(() => AuthProviders, { nullable: false })
|
||||
authProviders: AuthProviders;
|
||||
|
||||
|
||||
+1
@@ -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',
|
||||
|
||||
+1
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user