@nodeart/dal
Advanced tools
Comparing version 2.1.18 to 2.1.19
{ | ||
"name": "@nodeart/dal", | ||
"version": "2.1.18", | ||
"version": "2.1.19", | ||
"description": "Bridge for database connector(for now only Firebase).", | ||
@@ -12,4 +12,4 @@ "main": "index.ts", | ||
"dependencies": { | ||
"@nodeart/firebase-connector": "2.1.18" | ||
"@nodeart/firebase-connector": "2.1.19" | ||
} | ||
} |
@@ -74,24 +74,2 @@ import { Observable } from 'rxjs/Observable'; | ||
/** | ||
* Returns product by queryObj provided by DbAbstractionLayer | ||
* | ||
* @param {Object} queryObj ElasticSearch query object | ||
* | ||
* @returns Observable of product object. | ||
*/ | ||
getOneProduct(productId){ | ||
var queryObj = { | ||
index: esIndex, | ||
type: 'product', | ||
query: { | ||
"query": { | ||
"term":{ | ||
"_id": productId | ||
} | ||
} | ||
} | ||
}; | ||
return this.connector.getOneProduct(queryObj); | ||
} | ||
/** | ||
* Returns products by query object (look to {@link ProductService} method getProductsByIds) | ||
@@ -98,0 +76,0 @@ */ |
10606
368
+ Added@nodeart/firebase-connector@2.1.19(transitive)
- Removed@nodeart/firebase-connector@2.1.18(transitive)