fix
This commit is contained in:
parent
4a1b05dd56
commit
36f795222a
|
|
@ -24,6 +24,7 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
mode: "field" | "relation";
|
mode: "field" | "relation";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
console.log(arg);
|
||||||
if (arg) {
|
if (arg) {
|
||||||
const { table, where, data } = arg;
|
const { table, where, data } = arg;
|
||||||
const mode = arg.mode || "field";
|
const mode = arg.mode || "field";
|
||||||
|
|
@ -37,9 +38,6 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
.findAllByType("model", {})
|
.findAllByType("model", {})
|
||||||
.map((e) => e?.name) as string[];
|
.map((e) => e?.name) as string[];
|
||||||
|
|
||||||
console.log("iud", arg);
|
|
||||||
return { hr: "hello" };
|
|
||||||
|
|
||||||
if (schema_table) {
|
if (schema_table) {
|
||||||
let pks: Property[] = [];
|
let pks: Property[] = [];
|
||||||
for (const col of schema_table.properties) {
|
for (const col of schema_table.properties) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue