Use saveJsonToDisk in main func
This commit is contained in:
parent
afce2994bd
commit
b7255bd6c5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue