chore: example of make db.session pass from parameter. (#37561)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Asuka Minato
2026-06-18 02:16:09 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent 0fa43973b8
commit 4304044905
21 changed files with 274 additions and 206 deletions
@@ -126,6 +126,7 @@ class CustomizedSnippetsApi(Resource):
snippet_service = _snippet_service()
snippets, total, has_more = snippet_service.get_snippets(
tenant_id=current_tenant_id,
session=db.session,
page=query.page,
limit=query.limit,
keyword=query.keyword,