From bd49a299bfb56d2970e5668f5363d9dea219e7b5 Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 7 Mar 2024 20:53:44 +0700 Subject: [PATCH] wip fix --- pkgs/utils/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/utils/query.ts b/pkgs/utils/query.ts index 3dce3b5..21e7e15 100644 --- a/pkgs/utils/query.ts +++ b/pkgs/utils/query.ts @@ -121,7 +121,7 @@ export const execQuery = async (args: DBArg, prisma: any) => { is_pk: !!is_pk, type: type.toLowerCase(), optional: !!col.optional, - db_type: attr.name, + db_type: attr.name.toLowerCase(), default: default_val }; }