mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-30 20:58:27 +00:00
fix small oversight
This commit is contained in:
parent
e0bf711a79
commit
845fd93597
|
@ -32,14 +32,12 @@ export async function migrateV2Bookmarks(old: any) {
|
|||
const updatedBookmarks = oldData.bookmarks.map(
|
||||
async (item: { id: number; type: MWMediaType }) => ({
|
||||
...item,
|
||||
mediaId: await migrateId(item.id, item.type),
|
||||
id: await migrateId(item.id, item.type),
|
||||
})
|
||||
);
|
||||
|
||||
return {
|
||||
bookmarks: (await Promise.all(updatedBookmarks)).filter(
|
||||
(item) => item.mediaId
|
||||
),
|
||||
bookmarks: (await Promise.all(updatedBookmarks)).filter((item) => item.id),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue