Skip to content

Commit b7d4a1f

Browse files
Fix stable/latest repo URLs
1 parent f132faf commit b7d4a1f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

express/backend/src/cron.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ async function collectRepos(): Promise<void> {
7171
console.log("Collecting latest adapters");
7272
const [{ data: latest }, { data: stable }, db] = await Promise.all([
7373
axios.get<LatestAdapters>(
74-
"https://repo.iobroker.live/sources-dist-latest.json",
74+
"http://download.iobroker.net/sources-dist-latest.json",
7575
),
7676
axios.get<StableAdapters>(
77-
"https://repo.iobroker.live/sources-dist.json",
77+
"http://download.iobroker.net/sources-dist.json",
7878
),
7979
dbConnect(),
8080
]);

express/backend/src/global/iobroker.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface StableAdapter extends AdapterInfo {
4141
}
4242

4343
/**
44-
* Result of https://repo.iobroker.live/sources-dist.json
44+
* Result of http://download.iobroker.net/sources-dist.json
4545
*/
4646
export type StableAdapters = Record<AdapterName, StableAdapter>;
4747

@@ -50,7 +50,7 @@ export interface LatestAdapter extends AdapterInfo {
5050
}
5151

5252
/**
53-
* Result of https://repo.iobroker.live/sources-dist-latest.json
53+
* Result of http://download.iobroker.net/sources-dist-latest.json
5454
*/
5555
export type LatestAdapters = Record<AdapterName, LatestAdapter>;
5656

express/frontend/src/lib/ioBroker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export type TranslatedText = Record<string, string>;
2929

3030
export const getLatest = AsyncCache.of(async () => {
3131
const result = await axios.get<LatestAdapters>(
32-
"https://repo.iobroker.live/sources-dist-latest.json",
32+
"http://download.iobroker.net/sources-dist-latest.json",
3333
);
3434
return result.data;
3535
});
3636

3737
export const getStable = AsyncCache.of(async () => {
3838
const result = await axios.get<StableAdapters>(
39-
"https://repo.iobroker.live/sources-dist.json",
39+
"http://download.iobroker.net/sources-dist.json",
4040
);
4141
return result.data;
4242
});

0 commit comments

Comments
 (0)