Preparing search index...

    Function repairMissingRecipeImages

    • Repairs recipes that have a missing image but a valid source URL

      Filters the provided recipe list to candidates with an empty image_Source and a valid sourceUrl, or with a non-empty image_Source whose content matches the provider's known placeholder image (detected via MD5 comparison). Then sequentially re-fetches and persists the image for each candidate. Errors for individual recipes are caught and logged so the loop continues for remaining candidates.

      Parameters

      Returns Promise<void>

      Promise that resolves when all candidates have been processed