@memberjunction/core-entities
Advanced tools
Comparing version 0.9.59 to 0.9.60
@@ -82,3 +82,12 @@ "use strict"; | ||
return this.ViewSortInfo.map(s => { | ||
const desc = s.direction.trim().toLowerCase() === exports.ViewSortDirectionInfo.Desc.trim().toLowerCase(); | ||
let dir; | ||
if (typeof s.direction === 'string') | ||
dir = s.direction.trim().toLowerCase(); | ||
else if (s.direction === 1) // some legacy view metadata has 1/2 for asc/desc | ||
dir = 'asc'; | ||
else if (s.direction === 2) | ||
dir = 'desc'; | ||
else | ||
dir = ''; | ||
const desc = dir === exports.ViewSortDirectionInfo.Desc.trim().toLowerCase(); | ||
return s.field + (desc ? ' DESC' : ''); | ||
@@ -85,0 +94,0 @@ }).join(', '); |
{ | ||
"name": "@memberjunction/core-entities", | ||
"version": "0.9.59", | ||
"version": "0.9.60", | ||
"description": "Entity subclasses for the metadata layer of MemberJunction defined in the MJ_CORE schema (usually 'admin'), distributed as part of each release of MemberJunction", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
494725
14322