This commit is contained in:
Benjamin Toby
2025-02-12 12:29:41 +01:00
parent dbc68e54c6
commit 12296a3e75
3 changed files with 9 additions and 12 deletions
+6 -5
View File
@@ -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 };