feat: cache marka api responses
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user