mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	[API] Include detailed user information of blocking API responses
This commit is contained in:
		
							parent
							
								
									29b000e03c
								
							
						
					
					
						commit
						e23b13ec7f
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
 | 
			
		|||
	await create(blocker, blockee);
 | 
			
		||||
 | 
			
		||||
	// Send response
 | 
			
		||||
	res(await pack(blockee._id, user));
 | 
			
		||||
	res(await pack(blockee._id, user, {
 | 
			
		||||
		detail: true
 | 
			
		||||
	}));
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
 | 
			
		|||
	await deleteBlocking(blocker, blockee);
 | 
			
		||||
 | 
			
		||||
	// Send response
 | 
			
		||||
	res(await pack(blockee._id, user));
 | 
			
		||||
	res(await pack(blockee._id, user, {
 | 
			
		||||
		detail: true
 | 
			
		||||
	}));
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue