Skip to content

Commit

Permalink
fix(autoUpgrade): upgradeCoreAPI->upgradeUIAPI (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
lamprose authored Dec 12, 2024
1 parent 83551b1 commit eb6fb92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/settings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchIsUIUpdateAvailable, upgradeCoreAPI } from '@/api'
import { fetchIsUIUpdateAvailable, upgradeUIAPI } from '@/api'
import { autoUpgrade } from '@/store/settings'
import { ref } from 'vue'

Expand All @@ -8,7 +8,7 @@ export const useSettings = () => {
const checkUIUpdate = async () => {
isUIUpdateAvailable.value = await fetchIsUIUpdateAvailable()
if (isUIUpdateAvailable.value && autoUpgrade.value) {
upgradeCoreAPI()
upgradeUIAPI()
}
}

Expand Down

0 comments on commit eb6fb92

Please sign in to comment.