rest-easy-loki
Advanced tools
Comparing version 1.5.1 to 1.5.3
@@ -38,3 +38,3 @@ "use strict"; | ||
const { collection, id } = ctx.params; | ||
ctx.body = (0, database_1.get)(collection, +id) || (resolve && resolve({ uniqueId: '$loki', id: +id })); | ||
ctx.body = (0, database_1.get)(collection, +id) || (resolve && (await resolve({ uniqueId: '$loki', id: +id }))); | ||
}); | ||
@@ -44,3 +44,3 @@ /** Get by unique ID */ | ||
const { collection, id, unique } = ctx.params; | ||
ctx.body = (0, database_1.get)(collection, id, unique) || (resolve && resolve({ uniqueId: unique, id })); | ||
ctx.body = (0, database_1.get)(collection, id, unique) || (resolve && (await resolve({ uniqueId: unique, id }))); | ||
}); | ||
@@ -47,0 +47,0 @@ /** |
{ | ||
"name": "rest-easy-loki", | ||
"version": "1.5.1", | ||
"version": "1.5.3", | ||
"description": "A REST interface for lokijs supporting CRUD operations and automatic creation of new collections.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
59408