Upgrades
This commit is contained in:
+1
-10
@@ -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 || "";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user