fix type
This commit is contained in:
@@ -56,7 +56,7 @@ export const createUserList = async({ name, id = `userlist_${Date.now()}`, list
|
||||
name?: string
|
||||
id?: string
|
||||
list?: LX.Music.MusicInfo[]
|
||||
source?: LX.Source
|
||||
source?: LX.OnlineSource
|
||||
sourceListId?: string
|
||||
position?: number
|
||||
}) => {
|
||||
|
||||
@@ -22,7 +22,7 @@ const fetchList = async(id: string, source: LX.OnlineSource, sourceListId: strin
|
||||
export default async(targetListInfo: LX.List.UserListInfo) => {
|
||||
// console.log(targetListInfo)
|
||||
if (!targetListInfo.source || !targetListInfo.sourceListId) return
|
||||
const list = await fetchList(targetListInfo.id, targetListInfo.source as LX.OnlineSource, targetListInfo.sourceListId)
|
||||
const list = await fetchList(targetListInfo.id, targetListInfo.source, targetListInfo.sourceListId)
|
||||
// console.log(list)
|
||||
void overwriteListMusics({ listId: targetListInfo.id, musicInfos: list })
|
||||
const now = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user