Bugfix
This commit is contained in:
@@ -2,6 +2,7 @@ import get from "../../actions/get";
|
||||
import post from "../../actions/post";
|
||||
import sqlGenerator from "../../functions/dsql/sql/sql-generator";
|
||||
import { DsqlCrudParam, PostReturn } from "../../types";
|
||||
import connDbHandler from "../db/conn-db-handler";
|
||||
|
||||
export default async function dsqlCrud<
|
||||
T extends { [key: string]: any } = { [key: string]: any }
|
||||
@@ -30,11 +31,11 @@ export default async function dsqlCrud<
|
||||
genObject: query,
|
||||
});
|
||||
|
||||
const GET_RES = await get({
|
||||
query: queryObject?.string || "",
|
||||
queryValues: queryObject?.values || [],
|
||||
debug,
|
||||
});
|
||||
const GET_RES = await connDbHandler(
|
||||
global.DSQL_DB_CONN,
|
||||
queryObject?.string || "",
|
||||
queryObject?.values || []
|
||||
);
|
||||
|
||||
return { ...GET_RES, queryObject };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user