From 845fd935979aa3006384fe53a83a460a0716fa18 Mon Sep 17 00:00:00 2001 From: adrifcastr Date: Thu, 22 Jun 2023 20:29:10 +0200 Subject: [PATCH] fix small oversight --- src/state/watched/migrations/v3.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/state/watched/migrations/v3.ts b/src/state/watched/migrations/v3.ts index cbf081e2..71e0b182 100644 --- a/src/state/watched/migrations/v3.ts +++ b/src/state/watched/migrations/v3.ts @@ -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), }; }