mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	Fix dapper from ids when the id list is empty
This commit is contained in:
		
							parent
							
								
									80a6ac0c80
								
							
						
					
					
						commit
						df7b6ae71d
					
				@ -85,6 +85,8 @@ public abstract class DapperRepository<T> : IRepository<T>
 | 
			
		||||
	/// <inheritdoc />
 | 
			
		||||
	public async Task<ICollection<T>> FromIds(IList<Guid> ids, Include<T>? include = null)
 | 
			
		||||
	{
 | 
			
		||||
		if (!ids.Any())
 | 
			
		||||
			return Array.Empty<T>();
 | 
			
		||||
		return (
 | 
			
		||||
			await Database.Query<T>(
 | 
			
		||||
				Sql,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user