From 36f795222a96ed37512d9ffb1eb7f853221110ec Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 7 Jul 2024 08:05:34 +0700 Subject: [PATCH] fix --- pkgs/utils/query.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/utils/query.ts b/pkgs/utils/query.ts index be6c8b4..4194884 100644 --- a/pkgs/utils/query.ts +++ b/pkgs/utils/query.ts @@ -24,6 +24,7 @@ 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"; @@ -37,9 +38,6 @@ export const execQuery = async (args: DBArg, prisma: any) => { .findAllByType("model", {}) .map((e) => e?.name) as string[]; - console.log("iud", arg); - return { hr: "hello" }; - if (schema_table) { let pks: Property[] = []; for (const col of schema_table.properties) {