Use saveJsonToDisk in main func

This commit is contained in:
Nikhil Nawgiri 2024-10-26 18:47:48 +02:00
parent afce2994bd
commit b7255bd6c5

View file

@ -1,4 +1,5 @@
import { fetchFromApi } from "./fetchItemsFromJellyfin.ts";
import { saveJsonToDisk } from "./fsHelper.ts";
import { transformItems } from "./itemHelper.ts";
interface JellyfinApiResponse {
@ -18,7 +19,8 @@ const run = async () => {
console.log("transformedItems:", transformedItems);
console.log("totalItemCount:", totalItemCount);
// write to db file
saveJsonToDisk({ totalItemCount, items: transformedItems });
// update db file
}