diff --git a/be/src/main.ts b/be/src/main.ts index cdb4b3e..6b02ec7 100644 --- a/be/src/main.ts +++ b/be/src/main.ts @@ -1,4 +1,5 @@ import { fetchFromApi } from "./fetchItemsFromJellyfin.ts"; +import { transformItems } from "./itemHelper.ts"; interface JellyfinApiResponse { Items?: [], @@ -12,8 +13,13 @@ const run = async () => { TotalRecordCount: totalItemCount }: JellyfinApiResponse = await fetchFromApi(); - console.log("items:", items); + + const transformedItems = transformItems(items); + console.log("transformedItems:", transformedItems); console.log("totalItemCount:", totalItemCount); + + // write to db file + // update db file } run();