mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
fix small oversight
This commit is contained in:
parent
e0bf711a79
commit
845fd93597
1 changed files with 2 additions and 4 deletions
|
@ -32,14 +32,12 @@ export async function migrateV2Bookmarks(old: any) {
|
||||||
const updatedBookmarks = oldData.bookmarks.map(
|
const updatedBookmarks = oldData.bookmarks.map(
|
||||||
async (item: { id: number; type: MWMediaType }) => ({
|
async (item: { id: number; type: MWMediaType }) => ({
|
||||||
...item,
|
...item,
|
||||||
mediaId: await migrateId(item.id, item.type),
|
id: await migrateId(item.id, item.type),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
bookmarks: (await Promise.all(updatedBookmarks)).filter(
|
bookmarks: (await Promise.all(updatedBookmarks)).filter((item) => item.id),
|
||||||
(item) => item.mediaId
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue