This commit is contained in:
Rizky 2024-07-07 08:10:37 +07:00
parent 9434c4a188
commit e1aa1c0d3f
1 changed files with 3 additions and 0 deletions

View File

@ -24,9 +24,12 @@ export const execQuery = async (args: DBArg, prisma: any) => {
mode: "field" | "relation";
};
};
console.log(arg);
if (arg) {
const { table, where, data } = arg;
const mode = arg.mode || "field";
console.log("a", table, where, data);
if (table && where && data) {
const transactions = [];