fix(store): fix listenAlong statement

This commit is contained in:
JellyBrick
2023-10-23 00:29:59 +09:00
parent 776cdac30d
commit bceaa05197

View File

@ -21,8 +21,9 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
const migrations = {
'>=2.1.3'(store: Conf<Record<string, unknown>>) {
if (store.get('plugins.discord.listenAlong')) {
store.set('plugins.discord.playOnYouTubeMusic', true);
const listenAlong = store.get('plugins.discord.listenAlong');
if (listenAlong !== undefined) {
store.set('plugins.discord.playOnYouTubeMusic', listenAlong);
store.delete('plugins.discord.listenAlong');
}
},