diff --git a/video-gen-api/app/services/team_invitation_service.py b/video-gen-api/app/services/team_invitation_service.py index 0ae0ad81..4c9a4e2f 100644 --- a/video-gen-api/app/services/team_invitation_service.py +++ b/video-gen-api/app/services/team_invitation_service.py @@ -180,7 +180,7 @@ async def handle_join_request( if action == "approve": # 检查用户是否已在其他团队 user_result = await db.execute( - select(User).where(User.id == request.user_id, User.deleted_at.is_(None)).limit(1) + select(User).where(User.id == request.user_id, User.is_active == True).limit(1) ) user = user_result.scalar_one_or_none() if not user: