From 991a399ad2321a381336f6ac71049e81e0a2694c Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Tue, 23 May 2023 12:26:06 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/add-user.js | 2 +- users/login-user.js | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c82f24f..094a7a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.22", + "version": "1.1.23", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/add-user.js b/users/add-user.js index 9e643d4..a6c2f65 100644 --- a/users/add-user.js +++ b/users/add-user.js @@ -30,7 +30,7 @@ const https = require("https"); * payload: { * first_name: string, * last_name: string, - * user_name: string, + * username: string, * email: string, * password: string, * }, diff --git a/users/login-user.js b/users/login-user.js index a28f490..e36810e 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -26,7 +26,10 @@ const encrypt = require("../functions/encrypt"); * @param {object} params - Single Param object containing params * @param {String} params.key - API Key * @param {String} params.database - Target Database - * @param {(Object | string)} [params.payload={ action: "insert | update | delete", data: {}, table: "posts" }] SQL query String or Request + * @param {{ + * email: string, + * password: string + * }} params.payload Login Email/Username and Password * @param {Object} params.response - Http response object * @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionSalt - Encryption Salt