Refactor
This commit is contained in:
parent
f4425c941f
commit
47ccc86b75
|
@ -14,14 +14,14 @@ const run = async () => {
|
|||
TotalRecordCount: totalItemCount
|
||||
}: JellyfinApiResponse = await fetchFromJellyfinApi();
|
||||
|
||||
|
||||
const transformedItems = transformItems(items);
|
||||
console.log("transformedItems:", transformedItems);
|
||||
console.log("totalItemCount:", totalItemCount);
|
||||
saveJsonToDisk({ totalItemCount, jellyfinItems: transformedItems });
|
||||
|
||||
saveJsonToDisk({ totalItemCount, items: transformedItems });
|
||||
// save as something else than json lol
|
||||
|
||||
// update db file
|
||||
// express API
|
||||
// GET endpoint
|
||||
// POST endpoint
|
||||
}
|
||||
|
||||
run();
|
||||
|
|
Loading…
Reference in a new issue