This commit is contained in:
Rizky
2024-03-07 11:16:16 +07:00
parent 9ea7e373d8
commit 90678d1fae
2 changed files with 7 additions and 4 deletions
+2
View File
@@ -10,6 +10,8 @@ export type DBArg = {
export const execQuery = async (args: DBArg, prisma: any) => {
const { table, action, params } = args;
console.log(args);
const tableInstance = prisma[table];
if (tableInstance) {