fix(library-desk): ensure page_id is int in get_page GraphQL call

GraphQL requires Int type, but page_id might be passed as string.
Explicit int() conversion prevents 400 Bad Request errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-10 22:31:55 +01:00
co-authored by Claude Opus 4.5
parent 4cc2002fa6
commit 375913ec9d
@@ -351,7 +351,8 @@ class WikiJSClient:
"""
try:
data = await self._execute_query(query, {"id": page_id})
# Ensure page_id is int (GraphQL requires Int, not String)
data = await self._execute_query(query, {"id": int(page_id)})
page = data.get("pages", {}).get("single")
# Extract tag strings from tag objects