fix
This commit is contained in:
parent
599ec7b777
commit
9a562eeb76
|
|
@ -24,9 +24,15 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
mode: "field" | "raw";
|
mode: "field" | "raw";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (arg) {
|
if (arg) {
|
||||||
const { table, where, data } = 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) {
|
if (table && where && data) {
|
||||||
const transactions = [];
|
const transactions = [];
|
||||||
const tx_delete_index = new Set<number>();
|
const tx_delete_index = new Set<number>();
|
||||||
|
|
@ -51,6 +57,7 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
col.type === "attribute" &&
|
col.type === "attribute" &&
|
||||||
col.name === "id" &&
|
col.name === "id" &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue