diff --git a/infra/database/seed-dev.ts b/infra/database/seed-dev.ts index 59dc758..58c3d12 100644 --- a/infra/database/seed-dev.ts +++ b/infra/database/seed-dev.ts @@ -46,7 +46,7 @@ function getRandomCity(state: string): string { } async function main() { - const password = await hash('12345678', 10); + const password = await hash('12345678', 14); try { await dataSource.initialize(); diff --git a/infra/scripts/build-lambda.ts b/infra/scripts/build-lambda.ts index f7e34ca..b9e46d8 100644 --- a/infra/scripts/build-lambda.ts +++ b/infra/scripts/build-lambda.ts @@ -26,6 +26,7 @@ async function buildLambda() { target: 'node22', outfile: path.join(outDir, 'index.js'), minify: true, + keepNames: true, treeShaking: true, sourcemap: false, external: [ diff --git a/package.json b/package.json index ca6dbac..091ec76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "abnmo-backend", - "version": "0.0.1", + "version": "0.0.3", "description": "", "author": "", "private": true, diff --git a/src/common/log/log.decorator.ts b/src/common/log/log.decorator.ts index 7e62bf3..2b777e1 100644 --- a/src/common/log/log.decorator.ts +++ b/src/common/log/log.decorator.ts @@ -29,8 +29,12 @@ export function Log(eventName?: ContextEvent) { const methods = Object.getOwnPropertyNames(prototype); for (const name of methods) { + if (name === 'constructor') continue; + const originalMethod = prototype[name] as (...args: any[]) => any; + if (typeof originalMethod !== 'function') continue; + prototype[name] = function (this: WithLogger, ...args: unknown[]) { if (this.logger instanceof LogService) { const context = name === 'execute' ? cls.name : `${cls.name}.${name}`;