完善同步

This commit is contained in:
lyswhut
2022-12-26 17:40:45 +08:00
parent 4cea16c326
commit a7c2857808
12 changed files with 68 additions and 51 deletions
+2 -3
View File
@@ -108,9 +108,8 @@ const updateSnapshot = async(path: string, data: string) => {
})
}
interface UserDataObj {
[listId: string]: LX.List.UserListInfoFull
}
type UserDataObj = Record<string, LX.List.UserListInfoFull>
const createUserListDataObj = (listData: LX.Sync.ListData): UserDataObj => {
const userListDataObj: UserDataObj = {}
for (const list of listData.userList) userListDataObj[list.id] = list