Updates
This commit is contained in:
@@ -33,8 +33,6 @@ export default async function dsqlCrud<
|
||||
sanitize ? sanitize({ batchData }) : batchData
|
||||
) as T[];
|
||||
|
||||
const DB_CONN = global.DSQL_READ_ONLY_DB_CONN || global.DSQL_DB_CONN;
|
||||
|
||||
switch (action) {
|
||||
case "get":
|
||||
return await dsqlCrudGet(params);
|
||||
@@ -79,7 +77,7 @@ export default async function dsqlCrud<
|
||||
});
|
||||
|
||||
const res = (await connDbHandler(
|
||||
DB_CONN,
|
||||
undefined,
|
||||
deleteQuery?.query,
|
||||
deleteQuery?.values
|
||||
)) as PostInsertReturn;
|
||||
|
||||
@@ -213,7 +213,6 @@ export default async function dsqlMethodCrud<
|
||||
}
|
||||
return result;
|
||||
} catch (error) {
|
||||
global.ERROR_CALLBACK?.(`Method Crud Error`, error as Error);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user