mirror of
				https://github.com/infiniflow/ragflow.git
				synced 2025-11-04 11:49:37 +00:00 
			
		
		
		
	Fix non-null violation when inviting people to team (#3015)
### What problem does this PR solve? Not sure why MySQL is inserting empty string in this case, but when I use postgres I got `null value in column "invited_by" of relation "user_tenant" violates not-null constraint` ### Type of change - [X] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
		
							parent
							
								
									d78f215caa
								
							
						
					
					
						commit
						391b950be6
					
				@ -57,6 +57,7 @@ def create(tenant_id):
 | 
			
		||||
        id=get_uuid(),
 | 
			
		||||
        user_id=user_id,
 | 
			
		||||
        tenant_id=tenant_id,
 | 
			
		||||
        invited_by=current_user.id,
 | 
			
		||||
        role=UserTenantRole.INVITE,
 | 
			
		||||
        status=StatusEnum.VALID.value)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user