diff --git a/packages/core/app/src/config/database.ts b/packages/core/app/src/config/database.ts index 98aed72beb..6d40838aef 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 } }