From e0bf711a79b6e2a3fc9e6c1b634b18dbad369e18 Mon Sep 17 00:00:00 2001 From: adrifcastr Date: Thu, 22 Jun 2023 10:48:00 +0200 Subject: [PATCH] cleanup --- src/state/watched/migrations/v3.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/state/watched/migrations/v3.ts b/src/state/watched/migrations/v3.ts index 971dacf1..cbf081e2 100644 --- a/src/state/watched/migrations/v3.ts +++ b/src/state/watched/migrations/v3.ts @@ -8,9 +8,7 @@ async function migrateId( id: number, type: MWMediaType ): Promise { - console.log("migrating id", id, type); const meta = await getLegacyMetaFromId(type, id.toString()); - console.log("migrating id", meta); if (!meta) return undefined; const { tmdbId, imdbId } = meta; @@ -46,10 +44,8 @@ export async function migrateV2Bookmarks(old: any) { } export async function migrateV3Videos(old: any) { - console.log("migrating watched"); const oldData = old; if (!oldData) return; - console.log(oldData); const updatedItems = await Promise.all( oldData.items.map(async (item: any) => { @@ -77,7 +73,7 @@ export async function migrateV3Videos(old: any) { ); const newData: WatchedStoreData = { - items: updatedItems.map((item) => item.item), // Extract the "item" object + items: updatedItems.map((item) => item.item), }; return {