Fix _upsert_post to return (post, old_status) tuple
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m25s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m25s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -271,7 +271,7 @@ async def _upsert_post(sess: AsyncSession, gp: Dict[str, Any], author_map: Dict[
|
|||||||
sess.add(PageConfig(container_type="page", container_id=obj.id, features={}))
|
sess.add(PageConfig(container_type="page", container_id=obj.id, features={}))
|
||||||
await sess.flush()
|
await sess.flush()
|
||||||
|
|
||||||
return obj
|
return obj, old_status
|
||||||
|
|
||||||
async def _ghost_find_member_by_email(email: str) -> Optional[dict]:
|
async def _ghost_find_member_by_email(email: str) -> Optional[dict]:
|
||||||
"""Return first Ghost member with this email, or None."""
|
"""Return first Ghost member with this email, or None."""
|
||||||
|
|||||||
Reference in New Issue
Block a user