fix
This commit is contained in:
parent
dc94587a2c
commit
87dd053b2a
|
|
@ -36,6 +36,7 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
const tables = schema
|
const tables = schema
|
||||||
.findAllByType("model", {})
|
.findAllByType("model", {})
|
||||||
.map((e) => e?.name) as string[];
|
.map((e) => e?.name) as string[];
|
||||||
|
console.log("iud", schema_table);
|
||||||
|
|
||||||
if (schema_table) {
|
if (schema_table) {
|
||||||
let pks: Property[] = [];
|
let pks: Property[] = [];
|
||||||
|
|
@ -50,6 +51,8 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log("iud", schema_table, pks);
|
||||||
|
|
||||||
const rels = getRels({ schema_table, schema, table, tables });
|
const rels = getRels({ schema_table, schema, table, tables });
|
||||||
if (pks.length > 0) {
|
if (pks.length > 0) {
|
||||||
if (Object.keys(where.length > 0)) {
|
if (Object.keys(where.length > 0)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue