From 1e13f49c91627b6fc96ffe93f75cca8f022cd902 Mon Sep 17 00:00:00 2001 From: Tben Date: Thu, 27 Jul 2023 05:22:02 +0100 Subject: [PATCH] minor revision --- package.json | 2 +- utils/post.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a9b7c94..ba21708 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.91", + "version": "1.1.92", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/utils/post.js b/utils/post.js index 16db4b4..c594a0b 100644 --- a/utils/post.js +++ b/utils/post.js @@ -20,7 +20,7 @@ const https = require("https"); * @typedef {object} PostDataPayload * @property {"insert" | "update" | "delete"} action - The target action to take * @property {string} table - Table name(slug) eg "blog_posts" - * @property {object} data - Table insert payload object => This must have keys that match + * @property {object} [data] - Table insert payload object => This must have keys that match * table fields * @property {string?} [identifierColumnName] - Table identifier field name => eg. "id" OR "email" * @property {string?} [identifierValue] - Corresponding value of the selected field name => This @@ -124,7 +124,7 @@ async function post({ key, query, database }) { httpsRequest.write(reqPayload); httpsRequest.on("error", (error) => { - console.log("HTTPS request ERROR =>", error); + console.log("HTTPS request ERROR =>", error.message); }); httpsRequest.end();