wip migration change
This commit is contained in:
parent
d2a870ac96
commit
0e84cffa41
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||||
|
|
||||||
export const CONFIG_MIGRATION = 1
|
export const CONFIG_MIGRATION = 1
|
||||||
|
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
|
@ -22,7 +24,7 @@ export const declarations = [
|
||||||
description: 'Mute filters, wordfilter/regexp/etc',
|
description: 'Mute filters, wordfilter/regexp/etc',
|
||||||
valueType: 'complex',
|
valueType: 'complex',
|
||||||
migration(serverside, rootState) {
|
migration(serverside, rootState) {
|
||||||
rootState.config.muteWords.forEach((word, order) => {
|
useSyncConfigStore().mergedConfig.muteWords.forEach((word, order) => {
|
||||||
const uniqueId = uuidv4()
|
const uniqueId = uuidv4()
|
||||||
|
|
||||||
serverside.setPreference({
|
serverside.setPreference({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue