minor revision
This commit is contained in:
parent
5472a7e79e
commit
1e13f49c91
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.91",
|
"version": "1.1.92",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -20,7 +20,7 @@ const https = require("https");
|
|||||||
* @typedef {object} PostDataPayload
|
* @typedef {object} PostDataPayload
|
||||||
* @property {"insert" | "update" | "delete"} action - The target action to take
|
* @property {"insert" | "update" | "delete"} action - The target action to take
|
||||||
* @property {string} table - Table name(slug) eg "blog_posts"
|
* @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
|
* table fields
|
||||||
* @property {string?} [identifierColumnName] - Table identifier field name => eg. "id" OR "email"
|
* @property {string?} [identifierColumnName] - Table identifier field name => eg. "id" OR "email"
|
||||||
* @property {string?} [identifierValue] - Corresponding value of the selected field name => This
|
* @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.write(reqPayload);
|
||||||
|
|
||||||
httpsRequest.on("error", (error) => {
|
httpsRequest.on("error", (error) => {
|
||||||
console.log("HTTPS request ERROR =>", error);
|
console.log("HTTPS request ERROR =>", error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
httpsRequest.end();
|
httpsRequest.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user