feat: cache marka api responses

This commit is contained in:
Max Richter
2025-11-04 12:09:17 +01:00
parent bb4e895770
commit fea9b69d4d
9 changed files with 163 additions and 98 deletions

View File

@@ -76,7 +76,7 @@ async function processCreateRecipeFromUrl(
};
if (newRecipe?.image && newRecipe.image.length > 5) {
const extension = fileExtension(new URL(newRecipe.image).pathname);
const extension = fileExtension(newRecipe.image);
const finalPath = `resources/recipes/images/${
safeFileName(id)
}_cover.${extension}`;