hydrate-mongodb
Advanced tools
Comparing version 0.2.21 to 0.2.22
{ | ||
"name": "hydrate-mongodb", | ||
"description": "An Object Document Mapper (ODM) for MongoDB.", | ||
"version": "0.2.21", | ||
"version": "0.2.22", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Artifact Health, LLC", |
@@ -298,11 +298,9 @@ "use strict"; | ||
for (var i = 0; i < sorting.length; i++) { | ||
var sortTuple = sorting[i]; | ||
var value = sorting[i]; | ||
// resolve field path | ||
var context = this._mapping.resolve(sortTuple[0]); | ||
var context = this._mapping.resolve(value[0]); | ||
if (context.error) { | ||
return callback(context.error); | ||
} | ||
var sortDocument = {}; | ||
sortDocument[context.resolvedPath] = sortTuple[1]; | ||
order.push(sortDocument); | ||
order.push([context.resolvedPath, value[1]]); | ||
} | ||
@@ -309,0 +307,0 @@ callback(null, order); |
export interface OrderDocument { | ||
[field: string]: number; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368434
9043