Revert a change for AuthSess query
This commit is contained in:
		
							parent
							
								
									285bf04221
								
							
						
					
					
						commit
						f12ea885f7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -45,7 +45,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
 | 
			
		|||
 | 
			
		||||
	// Fetch token
 | 
			
		||||
	const session = await AuthSess
 | 
			
		||||
		.findOne({ 'account.token': token });
 | 
			
		||||
		.findOne({ token: token });
 | 
			
		||||
 | 
			
		||||
	if (session === null) {
 | 
			
		||||
		return rej('session not found');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue