From 5689c51b1105f7ba6fa96fd48819407a8d6ecdc8 Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Fri, 18 Aug 2023 21:29:10 +0800 Subject: [PATCH] fix: database logging --- packages/core/app/src/config/database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/app/src/config/database.ts b/packages/core/app/src/config/database.ts index 98aed72be..6d40838ae 100644 --- a/packages/core/app/src/config/database.ts +++ b/packages/core/app/src/config/database.ts @@ -17,7 +17,7 @@ export default { function customLogger(queryString, queryObject) { console.log(queryString); // outputs a string - if (queryObject.bind) { + if (queryObject?.bind) { console.log(queryObject.bind); // outputs an array } }