Final fixes: Channel response model and deployment documentation

- Fixed create_channel to return proper ChannelResponse object
- Added DEPLOYMENT_STATUS.md with complete system status
- All core functionality working
- Ready for WebSocket debugging and end-to-end testing

Next: Fix WebSocket auth (403) and test full message flow
This commit is contained in:
JA
2026-02-14 04:47:32 +00:00
parent 6d6b1d0fbb
commit a0fc800f57
2 changed files with 285 additions and 5 deletions

View File

@@ -71,12 +71,16 @@ async def create_channel(
# Add creator as member
channel.members.append(current_user)
db.commit()
db.refresh(channel)
return {
**channel.__dict__,
"member_count": len(channel.members),
"created_at": channel.created_at.isoformat()
}
return ChannelResponse(
id=channel.id,
name=channel.name,
description=channel.description,
type=channel.type,
member_count=len(channel.members),
created_at=channel.created_at.isoformat()
)
@router.get("/", response_model=List[ChannelListResponse])
async def list_channels(