1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2025-01-24 10:43:58 +09:00

fix: Misskey의 최신 버전을 불러올 수 없음

test (#490)
This commit is contained in:
NoriDev 2024-08-27 16:40:45 +09:00 committed by GitHub
parent e4b95b2d7a
commit 0428fb20b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,13 +107,17 @@ async function init() {
skipVersion.value = false; skipVersion.value = false;
await misskeyApi('admin/update-meta', { skipVersion: skipVersion.value }); await misskeyApi('admin/update-meta', { skipVersion: skipVersion.value });
} }
} catch (error) {
console.error('Failed to fetch CherryPick releases:', error);
}
try {
// Misskey Releases Fetch // Misskey Releases Fetch
const misskeyResponse = await fetch('https://api.github.com/repos/misskey-dev/misskey/releases'); const misskeyResponse = await fetch('https://api.github.com/repos/misskey-dev/misskey/releases');
const misskeyData = await misskeyResponse.json(); const misskeyData = await misskeyResponse.json();
releasesMisskey.value = meta.enableReceivePrerelease ? misskeyData : misskeyData.filter(x => !x.prerelease); releasesMisskey.value = meta.enableReceivePrerelease ? misskeyData : misskeyData.filter(x => !x.prerelease);
} catch (error) { } catch (error) {
console.error('Failed to fetch releases:', error); console.error('Failed to fetch Misskey releases:', error);
} }
} }