1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

Add instance id to ui-config endpoint

This commit is contained in:
Christopher Kolstad 2021-02-22 14:21:23 +01:00
parent 73239d4062
commit 35486efe77
No known key found for this signature in database
GPG Key ID: 559ACB0E3DB5538A

View File

@ -30,6 +30,7 @@ class VersionService {
async checkLatestVersion() {
if (this.enabled) {
const { id } = await this.settingStore.get('instanceInfo');
this.instanceId = id;
try {
const data = await fetch(this.versionCheckUrl, {
method: 'POST',
@ -55,6 +56,7 @@ class VersionService {
current: this.current,
latest: this.latest || {},
isLatest: this.isLatest,
instanceId: this.instanceId,
};
}
}