Skip to content

Commit e58c2f8

Browse files
committed
修复无效的歌曲信息导致我的列表数据迁移失败的问题(#1095
1 parent fcea542 commit e58c2f8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

publish/changeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
若以上操作仍然不行,可以加交流群或者在GitHub开issue反馈
1111

12-
### 优化
12+
### 修复
1313

14-
- 单次执行所有sql语句,尝试解决某些情况下某些表没有成功创建的问题
14+
- 修复无效的歌曲信息导致我的列表数据迁移失败的问题

src/main/utils/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface OldUserListInfo {
3131
const filterMusicList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
3232
const ids: Set<string> = new Set()
3333
return list.filter(s => {
34-
if (!s.id || ids.has(s.id)) return false
34+
if (!s.id || ids.has(s.id) || !s.name || s.singer == null) return false
3535
ids.add(s.id)
3636
return true
3737
})

0 commit comments

Comments
 (0)