Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
fix: increase update duration again now that the endpoint is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Aug 17, 2024
1 parent f21bbdc commit a2b1250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/update-glasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const useUpdatesGlassesInterval = () => {
watchThrottled(
[isOnline, now],
() => {
if (dayjs(now.value).diff(lastRefresh.value, 'minute') >= 5) {
if (dayjs(now.value).diff(lastRefresh.value, 'minute') >= 3) {
updateGlasses()
}
},
{ throttle: 10000 },
{ throttle: 15000 },
)

async function updateGlasses(firstLoad = false) {
Expand Down

0 comments on commit a2b1250

Please sign in to comment.