Fix blog: add page_configs migration, fix stale cart reference in ghost_sync
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s
- Add 0003_add_page_configs.py migration to create table in db_blog
- Fix ghost_sync.py: fetch_data("cart", "page-config-ensure") → "blog"
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -248,10 +248,10 @@ async def _upsert_post(sess: AsyncSession, gp: Dict[str, Any], author_map: Dict[
|
||||
finally:
|
||||
sess.autoflush = old_autoflush
|
||||
|
||||
# Auto-create PageConfig for pages (lives in db_cart, accessed via internal API)
|
||||
# Auto-create PageConfig for pages (blog now owns this table)
|
||||
if obj.is_page:
|
||||
await fetch_data(
|
||||
"cart", "page-config-ensure",
|
||||
"blog", "page-config-ensure",
|
||||
params={"container_type": "page", "container_id": obj.id},
|
||||
required=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user