Fix RecipeService initialization with cache manager
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ from pydantic import BaseModel
|
|||||||
from artdag_common import render
|
from artdag_common import render
|
||||||
from artdag_common.middleware import wants_html, wants_json
|
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.auth_service import UserContext, AuthService
|
||||||
from ..services.recipe_service import RecipeService
|
from ..services.recipe_service import RecipeService
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ class RecipeUploadRequest(BaseModel):
|
|||||||
|
|
||||||
def get_recipe_service():
|
def get_recipe_service():
|
||||||
"""Get recipe service instance."""
|
"""Get recipe service instance."""
|
||||||
return RecipeService(get_redis_client())
|
return RecipeService(get_redis_client(), get_cache_manager())
|
||||||
|
|
||||||
|
|
||||||
@router.post("/upload")
|
@router.post("/upload")
|
||||||
|
|||||||
Reference in New Issue
Block a user