Refactor: remove needless await
This commit is contained in:
		
							parent
							
								
									f19f92c538
								
							
						
					
					
						commit
						b4a30e2a25
					
				
					 2 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -73,8 +73,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Serialize
 | 
						// Serialize
 | 
				
			||||||
	const users = await Promise.all(following.map(async f =>
 | 
						const users = await Promise.all(following.map(f => pack(f.followerId, me, { detail: true })));
 | 
				
			||||||
		await pack(f.followerId, me, { detail: true })));
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Response
 | 
						// Response
 | 
				
			||||||
	res({
 | 
						res({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,8 +73,7 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Serialize
 | 
						// Serialize
 | 
				
			||||||
	const users = await Promise.all(following.map(async f =>
 | 
						const users = await Promise.all(following.map(f => pack(f.followeeId, me, { detail: true })));
 | 
				
			||||||
		await pack(f.followeeId, me, { detail: true })));
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Response
 | 
						// Response
 | 
				
			||||||
	res({
 | 
						res({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue