diff --git a/package.json b/package.json index 16aa32a..fa94c7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.8", + "version": "1.1.9", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/add-user.js b/users/add-user.js index d0b6d8d..4476bc8 100644 --- a/users/add-user.js +++ b/users/add-user.js @@ -30,7 +30,7 @@ const https = require("https"); * database: string * }} * - * @returns {FunctionReturn} + * @returns { Promise } */ module.exports = async function ({ key, payload, database }) { /** diff --git a/users/login-user.js b/users/login-user.js index e60bf68..a28f490 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -31,7 +31,7 @@ const encrypt = require("../functions/encrypt"); * @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionSalt - Encryption Salt * - * @returns {FunctionReturn} + * @returns { Promise} */ module.exports = async function ({ key, payload, database, response, encryptionKey, encryptionSalt }) { /** diff --git a/users/update-user.js b/users/update-user.js index 6ac4336..1eb244e 100644 --- a/users/update-user.js +++ b/users/update-user.js @@ -30,7 +30,7 @@ const https = require("https"); * @param {String | Object} [params.payload={ id: 4, first_name: "Benjamin" }] - User Object. * @param {number} [params.payload.id] - User id => Required * - * @returns {FunctionReturn} + * @returns { Promise} */ module.exports = async function ({ key, payload, database }) { /** diff --git a/utils/get.js b/utils/get.js index f90d129..9b41e59 100644 --- a/utils/get.js +++ b/utils/get.js @@ -29,7 +29,7 @@ const https = require("https"); * @param {string} params.db - Database Name * @param {(string | Object)} params.query - SQL Query * - * @returns {GetReturn} - Return Object + * @returns { Promise } - Return Object */ module.exports = async function ({ key, db, query }) { /** diff --git a/utils/post.js b/utils/post.js index 6987281..645d60c 100644 --- a/utils/post.js +++ b/utils/post.js @@ -35,7 +35,7 @@ const https = require("https"); * data: object, * } | string)} params.query - SQL query String or Request Object * - * @returns { PostReturn } - Return Object + * @returns { Promise } - Return Object */ module.exports = async function ({ key, query, database }) { /**