MSP-7036 fix search & sort

This commit is contained in:
likhachevam committed 2026-02-13 17:06:52 +03:00
1 parent 71e0768231
commit ec327424c9
19 files changed
+447 -126

No files matched your search

+7
View File
@@ -38,6 +38,13 @@ func NewAudit(service AuditService) Audit {
// @Failure 500 {object} domain.GrpcError
// @Router /log/all [POST]
func (c Audit) All(ctx context.Context, req domain.AuditPageRequest) (*domain.AuditResponse, error) {
if req.Order == nil {
req.Order = &domain.OrderParams{
Field: domain.DefaultOrderField,
Type: domain.DefaultOrderType,
}
}
return c.service.All(ctx, req)
}