This commit is contained in:
Tben
2023-08-12 17:23:52 +01:00
parent 32785f9caa
commit f0feaf508b
3 changed files with 4 additions and 13 deletions
+1 -10
View File
@@ -30,20 +30,11 @@ const runQuery = require("./utils/runQuery");
*/
async function localGet({ options, dbSchema }) {
try {
const { query } = options;
const { query, queryValues } = options;
/** @type {string | undefined | any } */
const tableName = options?.tableName ? options.tableName : undefined;
/** @type {string[] | undefined } */
let queryValues;
if (options?.queryValues && typeof options?.queryValues === "string") {
try {
queryValues = JSON.parse(options.queryValues);
} catch (error) {}
}
const dbFullName = process.env.DSQL_DB_NAME || "";
/**