From d19d6d6e42c3e639fa0a5619695430abb8223280 Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 11 Jan 2026 12:34:39 +0000 Subject: [PATCH] Fix RecipeService initialization with cache manager Co-Authored-By: Claude Opus 4.5 --- app/routers/recipes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routers/recipes.py b/app/routers/recipes.py index ad8be55..e0135c9 100644 --- a/app/routers/recipes.py +++ b/app/routers/recipes.py @@ -14,7 +14,7 @@ from pydantic import BaseModel from artdag_common import render from artdag_common.middleware import wants_html, wants_json -from ..dependencies import require_auth, get_templates, get_redis_client +from ..dependencies import require_auth, get_templates, get_redis_client, get_cache_manager from ..services.auth_service import UserContext, AuthService from ..services.recipe_service import RecipeService @@ -30,7 +30,7 @@ class RecipeUploadRequest(BaseModel): def get_recipe_service(): """Get recipe service instance.""" - return RecipeService(get_redis_client()) + return RecipeService(get_redis_client(), get_cache_manager()) @router.post("/upload")