mirror of
				https://github.com/D4M13N-D3V/comissions-app-core-api.git
				synced 2025-10-31 01:25:27 +00:00 
			
		
		
		
	fix: return properly
This commit is contained in:
		
							parent
							
								
									0ee9cdadc7
								
							
						
					
					
						commit
						0587ebd942
					
				| @ -202,13 +202,13 @@ public class ArtistRequestsController: Controller | ||||
|         var query = _dbContext.Requests.Include(x => x.Artist) | ||||
|             .Where(x => x.Artist.UserId == userId); | ||||
| 
 | ||||
| 
 | ||||
|         if (!string.IsNullOrWhiteSpace(search)) | ||||
|         { | ||||
|             query = query.Where(x => x.Artist.Name.Contains(search) || x.Message.Contains(search)); | ||||
|         } | ||||
| 
 | ||||
|         var requests = await query | ||||
|             .OrderByDescending(x => x.Id) // Sort by Id in descending order | ||||
|             .Include(x => x.Artist) | ||||
|             .Skip(offset) | ||||
|             .Take(pageSize) | ||||
| @ -218,6 +218,7 @@ public class ArtistRequestsController: Controller | ||||
|         return Ok(result); | ||||
|     } | ||||
| 
 | ||||
|      | ||||
|     [Authorize("read:request")] | ||||
|     [HttpGet] | ||||
|     [Route("Artist/Count")] | ||||
|  | ||||
| @ -680,6 +680,7 @@ public class CustomerRequestsController : Controller | ||||
|         } | ||||
| 
 | ||||
|         var requests = await query | ||||
|             .OrderByDescending(x => x.Id) // Sort by Id in descending order | ||||
|             .Include(x => x.Artist) | ||||
|             .Skip(offset) | ||||
|             .Take(pageSize) | ||||
| @ -689,6 +690,7 @@ public class CustomerRequestsController : Controller | ||||
|         return Ok(result); | ||||
|     } | ||||
| 
 | ||||
|      | ||||
|     [HttpGet] | ||||
|     [Route("Customer/Count")] | ||||
|     public async Task<IActionResult> GetRequestCount(string search="") | ||||
|  | ||||
| @ -13,7 +13,7 @@ using System.Reflection; | ||||
| [assembly: System.Reflection.AssemblyCompanyAttribute("comissions.app.database.migrator")] | ||||
| [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | ||||
| [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | ||||
| [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2b3f49b5e916bbc62abf16d71a2cc73cd8c0574e")] | ||||
| [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0ee9cdadc75ca174c50e1bc050339331124ffd90")] | ||||
| [assembly: System.Reflection.AssemblyProductAttribute("comissions.app.database.migrator")] | ||||
| [assembly: System.Reflection.AssemblyTitleAttribute("comissions.app.database.migrator")] | ||||
| [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | ||||
|  | ||||
| @ -1 +1 @@ | ||||
| 74188e69eae056268d3cabf79431c5962dc192c234e6c4fe273dc0c15075b0cf | ||||
| 980ac0a21197e606cf069009cdbd4dc8d8a59f1a5b6d8a5badb5861a165b28df | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler