debugging

This commit is contained in:
vabene1111
2024-01-19 21:42:48 +08:00
parent 12db67bd96
commit e321c80dd6
2 changed files with 7 additions and 2 deletions

View File

@@ -94,10 +94,10 @@ export const useUserPreferenceStore = defineStore(_STORE_ID, {
for (s in settings) {
Vue.set(this.user_settings, s, settings[s])
}
console.log(`loaded local user settings age ${((new Date().getTime()) - this.user_settings.locally_updated_at) / 1000} `)
//console.log(`loaded local user settings age ${((new Date().getTime()) - this.user_settings.locally_updated_at) / 1000} `)
}
if (((new Date().getTime()) - this.user_settings.locally_updated_at) > _STALE_TIME_IN_MS) {
console.log('refreshing user settings from API')
//console.log('refreshing user settings from API')
let apiClient = new ApiApiFactory()
apiClient.retrieveUserPreference(localStorage.getItem('USER_ID')).then(r => {
for (s in r.data) {