From 685b4c80eb57649b1e4047519ede219495aebbdc Mon Sep 17 00:00:00 2001 From: Icebob Date: Mon, 17 Jul 2017 14:48:05 +0200 Subject: [PATCH] fix jsdoc @returns --- databases/moleculer-db/src/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/databases/moleculer-db/src/index.js b/databases/moleculer-db/src/index.js index 31114c7..c38cf65 100644 --- a/databases/moleculer-db/src/index.js +++ b/databases/moleculer-db/src/index.js @@ -243,7 +243,7 @@ module.exports = { * * @param {Context} ctx * @param {any} origParams - * @returns + * @returns {Promise} */ sanitizeParams(ctx, params) { let p = Object.assign({}, params); @@ -296,7 +296,7 @@ module.exports = { * * @param {Context} ctx * @param {Object} params - * @returns + * @returns {Promise} */ find(ctx, params) { return this.adapter.find(params) @@ -308,7 +308,7 @@ module.exports = { * * @param {Context} ctx * @param {Object} params - * @returns + * @returns {Promise} */ count(ctx, params) { // Remove pagination params @@ -325,7 +325,7 @@ module.exports = { * * @param {Context} ctx * @param {Object} params - * @returns + * @returns {Promise} */ create(ctx, params) { return this.validateEntity(params.entity) @@ -339,7 +339,7 @@ module.exports = { * * @param {Context} ctx * @param {Object} params - * @returns + * @returns {Promise} */ createMany(ctx, params) { return this.validateEntity(params.entities) @@ -353,7 +353,7 @@ module.exports = { * * @param {Context} ctx * @param {Object} params - * @returns + * @returns {Promise} */ getById(ctx, params) { let origDoc; @@ -681,7 +681,7 @@ module.exports = { * Encode ID of entity * * @param {any} id - * @returns + * @returns {any} */ encodeID(id) { return id; @@ -691,7 +691,7 @@ module.exports = { * Decode ID of entity * * @param {any} id - * @returns + * @returns {any} */ decodeID(id) { return id;