do not fail on debug

This commit is contained in:
Henry Jameson 2026-02-20 11:14:27 +02:00
commit 70177deb49

View file

@ -598,19 +598,19 @@ export const useSyncConfigStore = defineStore('sync_config', {
}
console.log('======')
console.log('CACHE', cache.prefsStorage.simple.conversationDisplay)
console.log('LIVE', live.prefsStorage.simple.conversationDisplay)
if (cache._timestamp > live._timestamp) {
console.log('CACHE', cache?.prefsStorage?.simple?.conversationDisplay)
console.log('LIVE', live?.prefsStorage?.simple?.conversationDisplay)
if (cache?._timestamp > live?._timestamp) {
console.log('C > L')
} else if (cache._timestamp === live._timestamp) {
} else if (cache?._timestamp === live?._timestamp) {
console.log('C = L')
} else {
console.log('C < L')
}
let { recent, stale, needUpload } = _getRecentData(cache, live)
console.log('======')
console.log('RECENT', recent.prefsStorage.simple.conversationDisplay)
console.log('STALE', stale.prefsStorage.simple.conversationDisplay)
console.log('RECENT', recent.prefsStorage?.simple?.conversationDisplay)
console.log('STALE', stale?.prefsStorage?.simple?.conversationDisplay)
console.log('======')
const userNew = userData.created_at > NEW_USER_DATE