when linking email store as lowercase
This commit is contained in:
		
							parent
							
								
									b7132cc962
								
							
						
					
					
						commit
						48990d5987
					
				| @ -245,7 +245,10 @@ export default { | ||||
|       } | ||||
| 
 | ||||
|       try { | ||||
|         await models.user.update({ where: { id: me.id }, data: { email } }) | ||||
|         await models.user.update({ | ||||
|           where: { id: me.id }, | ||||
|           data: { email: email.toLowerCase() } | ||||
|         }) | ||||
|       } catch (error) { | ||||
|         if (error.code === 'P2002') { | ||||
|           throw new UserInputError('email taken') | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user