Refactoring
This commit is contained in:
		
							parent
							
								
									9bc17974f2
								
							
						
					
					
						commit
						2fcf9288a5
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -40,6 +40,5 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Serialize
 | 
						// Serialize
 | 
				
			||||||
	res(await Promise.all(history.map(async h =>
 | 
						res(await Promise.all(history.map(h => pack(h.messageId, user))));
 | 
				
			||||||
		await pack(h.messageId, user))));
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue