Updates
This commit is contained in:
parent
e13a14ab5c
commit
967cbae93f
@ -37,7 +37,7 @@ function apiGet(_a) {
|
||||
tableName,
|
||||
local: useLocal,
|
||||
});
|
||||
if (debug) {
|
||||
if (debug && useLocal) {
|
||||
console.log("apiGet:result", result);
|
||||
console.log("apiGet:error", error);
|
||||
}
|
||||
@ -73,7 +73,7 @@ function apiGet(_a) {
|
||||
component: "/api/query/get/lines-85-94",
|
||||
message: error.message,
|
||||
});
|
||||
if (debug) {
|
||||
if (debug && useLocal) {
|
||||
console.log("apiGet:error", error.message);
|
||||
}
|
||||
return {
|
||||
|
@ -58,7 +58,7 @@ function runQuery(_a) {
|
||||
try {
|
||||
if (typeof query === "string") {
|
||||
const formattedQuery = (0, trim_sql_1.default)(query);
|
||||
if (debug) {
|
||||
if (debug && local) {
|
||||
console.log("runQuery:formattedQuery", formattedQuery);
|
||||
}
|
||||
/**
|
||||
@ -148,7 +148,7 @@ function runQuery(_a) {
|
||||
component: "functions/backend/runQuery",
|
||||
message: error.message,
|
||||
});
|
||||
if (debug) {
|
||||
if (debug && local) {
|
||||
console.log("runQuery:error", error.message);
|
||||
}
|
||||
result = null;
|
||||
|
@ -47,7 +47,7 @@ export default async function apiGet({
|
||||
local: useLocal,
|
||||
});
|
||||
|
||||
if (debug) {
|
||||
if (debug && useLocal) {
|
||||
console.log("apiGet:result", result);
|
||||
console.log("apiGet:error", error);
|
||||
}
|
||||
@ -90,7 +90,7 @@ export default async function apiGet({
|
||||
message: error.message,
|
||||
});
|
||||
|
||||
if (debug) {
|
||||
if (debug && useLocal) {
|
||||
console.log("apiGet:error", error.message);
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ export default async function runQuery({
|
||||
if (typeof query === "string") {
|
||||
const formattedQuery = trimSql(query);
|
||||
|
||||
if (debug) {
|
||||
if (debug && local) {
|
||||
console.log("runQuery:formattedQuery", formattedQuery);
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ export default async function runQuery({
|
||||
message: error.message,
|
||||
});
|
||||
|
||||
if (debug) {
|
||||
if (debug && local) {
|
||||
console.log("runQuery:error", error.message);
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "3.6.4",
|
||||
"version": "3.6.5",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user