Skip to content

Commit 979e479

Browse files
committed
fix(stores): fix updateCheck calls
1 parent 6bd985a commit 979e479

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/store/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const useEventsStore = createSharedComposable(() => {
8484
const isUpdateNeeded = !lastUpdate.value || dayjs().diff(dayjs(lastUpdate.value), "hours") >= 1;
8585
if (isUpdateNeeded) return updateEvents();
8686
}
87-
whenever(() => storage.value.lastUpdate, () => updateCheck, { immediate: true });
87+
whenever(() => storage.value.lastUpdate, updateCheck, { immediate: true });
8888

8989
return {
9090
events,

src/store/latest-versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const useLatestVersionsStore = createSharedComposable(() => {
4545
const isUpdateNeeded = isEmpty.value || !lastUpdate.value || dayjs().diff(dayjs(lastUpdate.value), "hours") >= 1;
4646
if (isUpdateNeeded) return updateLatestVersions();
4747
}
48-
whenever(() => storage.value.lastUpdate, () => updateCheck, { immediate: true });
48+
whenever(() => storage.value.lastUpdate, updateCheck, { immediate: true });
4949

5050
return {
5151
latestVersions,

src/store/repositories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const useRepositoriesStore = createSharedComposable(() => {
107107
const isUpdateNeeded = !lastUpdate.value || dayjs().diff(dayjs(lastUpdate.value), "hours") >= 1;
108108
if (isUpdateNeeded) return updateRepositories();
109109
}
110-
whenever(() => storage.value.lastUpdate, () => updateCheck, { immediate: true });
110+
whenever(() => storage.value.lastUpdate, updateCheck, { immediate: true });
111111

112112
return {
113113
repositories,

0 commit comments

Comments
 (0)