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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user