Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infra/database/seed-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions infra/scripts/build-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async function buildLambda() {
target: 'node22',
outfile: path.join(outDir, 'index.js'),
minify: true,
keepNames: true,
treeShaking: true,
sourcemap: false,
external: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abnmo-backend",
"version": "0.0.1",
"version": "0.0.3",
"description": "",
"author": "",
"private": true,
Expand Down
4 changes: 4 additions & 0 deletions src/common/log/log.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down
Loading