fix(shortcodesService): Исправлена сортировка родителей для тега %РОД_ЭК_ПЕРВЫЙ%

This commit is contained in:
Mikhail Kuznetsov
2026-10-15 11:33:40 +10:00
parent 0fcbe870b9
commit 5c3b273346

View File

@@ -300,8 +300,8 @@ internal class ShortcodesService : IShortcodesService
parentUnits = await _unitRepo.Get()
.AsNoTracking()
.Where(u => parentIds.Contains(u.Id))
.OrderBy(u => u.Name)
.Select(u => new ParentUnitForShortcode(u.Id, u.Name))
.OrderBy(u => u.UnitName)
.ToListAsync()
.ConfigureAwait(false);
}