mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: rc version check (#29194)
This commit is contained in:
parent
9a5e7a8e47
commit
a719552243
1 changed files with 10 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue