command to clear journals in case of a leak or development leak
This commit is contained in:
parent
ca0da60bcd
commit
5b1536eb3e
1 changed files with 6 additions and 0 deletions
|
|
@ -579,6 +579,12 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
||||||
this[k] = blankState[k]
|
this[k] = blankState[k]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
clearJournals() {
|
||||||
|
this.prefsStorage._journal = []
|
||||||
|
this.cache.prefsStorage._journal = []
|
||||||
|
this.raw.prefsStorage._journal = []
|
||||||
|
this.pushSyncConfig()
|
||||||
|
},
|
||||||
setSyncConfig(userData) {
|
setSyncConfig(userData) {
|
||||||
const live = userData.storage
|
const live = userData.storage
|
||||||
this.raw = live
|
this.raw = live
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue