From 5472a7e79eae49b6428c7be60f9d54a2e3ca0e59 Mon Sep 17 00:00:00 2001 From: Tben Date: Thu, 27 Jul 2023 05:17:37 +0100 Subject: [PATCH] minor revision --- package.json | 2 +- utils/post.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 29a067d..a9b7c94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.90", + "version": "1.1.91", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/utils/post.js b/utils/post.js index a2e0f2f..16db4b4 100644 --- a/utils/post.js +++ b/utils/post.js @@ -20,15 +20,15 @@ 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 {string?} identifierColumnName - Table identifier field name => eg. "id" OR "email" - * @property {string?} identifierValue - Corresponding value of the selected field name => This - * checks identifies a the target row for "update" or "delete". Not needed for "insert" * @property {object} data - Table insert payload object => This must have keys that match * table fields - * @property {string?} duplicateColumnName - Duplicate column name to check for - * @property {string?} duplicateColumnValue - Duplicate column value to match. If no "update" param + * @property {string?} [identifierColumnName] - Table identifier field name => eg. "id" OR "email" + * @property {string?} [identifierValue] - Corresponding value of the selected field name => This + * checks identifies a the target row for "update" or "delete". Not needed for "insert" + * @property {string?} [duplicateColumnName] - Duplicate column name to check for + * @property {string?} [duplicateColumnValue] - Duplicate column value to match. If no "update" param * provided, function will return null - * @property {boolean?} update - Should the "insert" action update the existing entry if indeed + * @property {boolean?} [update] - Should the "insert" action update the existing entry if indeed * the entry with "duplicateColumnValue" exists? */