mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add instance id to ui-config endpoint
This commit is contained in:
		
							parent
							
								
									73239d4062
								
							
						
					
					
						commit
						35486efe77
					
				@ -30,6 +30,7 @@ class VersionService {
 | 
				
			|||||||
    async checkLatestVersion() {
 | 
					    async checkLatestVersion() {
 | 
				
			||||||
        if (this.enabled) {
 | 
					        if (this.enabled) {
 | 
				
			||||||
            const { id } = await this.settingStore.get('instanceInfo');
 | 
					            const { id } = await this.settingStore.get('instanceInfo');
 | 
				
			||||||
 | 
					            this.instanceId = id;
 | 
				
			||||||
            try {
 | 
					            try {
 | 
				
			||||||
                const data = await fetch(this.versionCheckUrl, {
 | 
					                const data = await fetch(this.versionCheckUrl, {
 | 
				
			||||||
                    method: 'POST',
 | 
					                    method: 'POST',
 | 
				
			||||||
@ -55,6 +56,7 @@ class VersionService {
 | 
				
			|||||||
            current: this.current,
 | 
					            current: this.current,
 | 
				
			||||||
            latest: this.latest || {},
 | 
					            latest: this.latest || {},
 | 
				
			||||||
            isLatest: this.isLatest,
 | 
					            isLatest: this.isLatest,
 | 
				
			||||||
 | 
					            instanceId: this.instanceId,
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user