diff --git a/src/state/bookmark/store.ts b/src/state/bookmark/store.ts index 5be45812..11bec1c5 100644 --- a/src/state/bookmark/store.ts +++ b/src/state/bookmark/store.ts @@ -1,13 +1,12 @@ import { createVersionedStore } from "@/utils/storage"; -import { migrateV1Bookmarks } from "../watched/migrations/v2"; +import { migrateV1Bookmarks, OldBookmarks } from "../watched/migrations/v2"; import { BookmarkStoreData } from "./types"; export const BookmarkStore = createVersionedStore() .setKey("mw-bookmarks") .addVersion({ version: 0, - migrate(oldBookmarks) { - console.log(oldBookmarks); + migrate(oldBookmarks: OldBookmarks) { return migrateV1Bookmarks(oldBookmarks); }, }) diff --git a/src/state/watched/migrations/v2.ts b/src/state/watched/migrations/v2.ts index c079b32d..946334e8 100644 --- a/src/state/watched/migrations/v2.ts +++ b/src/state/watched/migrations/v2.ts @@ -27,7 +27,7 @@ export interface OldData { items: (OldMovie | OldSeries)[]; } -interface OldBookmarks { +export interface OldBookmarks { bookmarks: (OldMovie | OldSeries)[]; }