|
@@ -26,8 +26,10 @@ export const useUpdateStore = create<UpdateStore>()(
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
- const data = await (await fetch(FETCH_TAG_URL)).json();
|
|
|
- const remoteId = data[0].name as string;
|
|
|
+ // const data = await (await fetch(FETCH_TAG_URL)).json();
|
|
|
+ // const remoteId = data[0].name as string;
|
|
|
+ const data = await (await fetch(FETCH_COMMIT_URL)).json();
|
|
|
+ const remoteId = (data[0].sha as string).substring(0, 7);
|
|
|
set(() => ({
|
|
|
lastUpdate: Date.now(),
|
|
|
remoteId,
|