This commit is contained in:
Rizky 2024-08-17 14:30:15 +07:00
parent 599ec7b777
commit 9a562eeb76
1 changed files with 8 additions and 1 deletions

View File

@ -24,9 +24,15 @@ export const execQuery = async (args: DBArg, prisma: any) => {
mode: "field" | "raw";
};
};
if (arg) {
const { table, where, data } = arg;
const mode = arg.mode || "field";
let mode = arg.mode || "field";
if (mode !== "field") {
mode = "raw";
}
if (table && where && data) {
const transactions = [];
const tx_delete_index = new Set<number>();
@ -51,6 +57,7 @@ export const execQuery = async (args: DBArg, prisma: any) => {
}
}
}
if (
col.type === "attribute" &&
col.name === "id" &&