modified sort for pricing definitions get
fixed connector type schema validators to handle null ("all connector" type from front)
MODIFY
src/assets/schemas/pricing/pricing-definition.json
src/assets/schemas/pricing/pricing-definition.json
"T3C",
"T1CCS",
"D",
- "U"
- ]
+ "U",
+ null
+ ],
+ "nullable": true
},
"connectorPowerkW": {
"type": "number",

MODIFY
src/server/rest/v1/service/PricingService.ts
src/server/rest/v1/service/PricingService.ts
@@ -55,7 +55,7 @@ export default class PricingService {
}, {
limit: filteredRequest.Limit,
skip: filteredRequest.Skip,
- sort: filteredRequest.SortFields,
+ sort: UtilsService.httpSortFieldsToMongoDB(filteredRequest.SortFields),
onlyRecordCount: filteredRequest.OnlyRecordCount
},
authorizationPricingDefinitionsFilter.projectFields

modified sort for pricing definitions get
fixed connector type schema validators to handle null ("all connector" type from front)