From 4a8523815e46feda4988aba2ad29ddf3e67181d5 Mon Sep 17 00:00:00 2001 From: Sergey Nesterov Date: Fri, 17 Apr 2020 16:55:15 +0300 Subject: [PATCH] Fixed sorting field for campaigns --- .../Repositories/CampaignsRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MAVN.Service.SmartVouchers.MsSqlRepositories/Repositories/CampaignsRepository.cs b/src/MAVN.Service.SmartVouchers.MsSqlRepositories/Repositories/CampaignsRepository.cs index 11b8ce6..3eaeaa3 100644 --- a/src/MAVN.Service.SmartVouchers.MsSqlRepositories/Repositories/CampaignsRepository.cs +++ b/src/MAVN.Service.SmartVouchers.MsSqlRepositories/Repositories/CampaignsRepository.cs @@ -109,7 +109,7 @@ public async Task GetCampaignsAsync(CampaignListRequest request) } var result = await query - .OrderByDescending(i => i.CreatedBy) + .OrderByDescending(i => i.CreationDate) .Skip(request.Skip) .Take(request.Take) .ToListAsync();