fix: rc version check (#29194)

This commit is contained in:
Daniel Dietzler 2026-06-18 23:00:12 +02:00 committed by GitHub
parent 9a5e7a8e47
commit a719552243
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,16 @@ export class ServerInfoRepository {
try {
const { versionCheck } = this.configRepository.getEnv();
const url = new URL(versionCheck.url);
url.searchParams.append('channel', channel);
switch (channel) {
case ReleaseChannel.Stable: {
url.searchParams.append('channel', 'stable');
break;
}
case ReleaseChannel.ReleaseCandidate: {
url.searchParams.append('channel', 'rc');
break;
}
}
const response = await fetch(url);
if (!response.ok) {