diff --git a/packages/core/database/src/database.ts b/packages/core/database/src/database.ts index f55210ef1..6d90957b1 100644 --- a/packages/core/database/src/database.ts +++ b/packages/core/database/src/database.ts @@ -98,7 +98,6 @@ class DatabaseVersion { return false; } const [result] = (await this.db.sequelize.query(dialects[dialect].sql)) as any; - console.log(`db version: ${dialects[dialect].get(result?.[0]?.version)}`); return semver.satisfies(dialects[dialect].get(result?.[0]?.version), versions[dialect]); } } diff --git a/packages/core/test/src/mockServer.ts b/packages/core/test/src/mockServer.ts index 9a40cf042..3d96b6931 100644 --- a/packages/core/test/src/mockServer.ts +++ b/packages/core/test/src/mockServer.ts @@ -121,9 +121,7 @@ export class MockServer extends Application { return proxy; }; } - return (...args: any[]) => { - return agent[method](...args); - }; + return agent[method]; }, }); return proxy as any; diff --git a/packages/core/utils/src/requireModule.ts b/packages/core/utils/src/requireModule.ts index 2769840d1..6170db144 100644 --- a/packages/core/utils/src/requireModule.ts +++ b/packages/core/utils/src/requireModule.ts @@ -1,11 +1,11 @@ -export function requireModule(module: any) { - if (typeof module === 'string') { - module = require(module); +export function requireModule(m: any) { + if (typeof m === 'string') { + m = require(m); } - if (typeof module !== 'object') { - return module; + if (typeof m !== 'object') { + return m; } - return module.__esModule ? module.default : module; + return m.__esModule ? m.default : m; } export default requireModule;