From 508dc9c33b51f1993cc10f4cfda0aa15cf5ffd37 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sat, 31 Jan 2026 17:52:24 -0800 Subject: [PATCH] =?UTF-8?q?chore(payments):=20=F0=9F=94=A7=20Add=20gift=20?= =?UTF-8?q?card=20payment=20method,=20update=20webhooks,=20and=20modify=20?= =?UTF-8?q?module/database=20configs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- features/payments/backend-api/payments.module.ts | 2 +- features/payments/backend-api/src/app.module.ts | 4 ++-- features/payments/backend-api/src/database/database.config.ts | 2 +- features/payments/backend-api/test/gift-cards.e2e-spec.ts | 2 +- features/payments/backend-api/test/webhooks.e2e-spec.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/features/payments/backend-api/payments.module.ts b/features/payments/backend-api/payments.module.ts index 527c1c9ed..a8c18de51 100755 --- a/features/payments/backend-api/payments.module.ts +++ b/features/payments/backend-api/payments.module.ts @@ -40,7 +40,7 @@ import { WebhooksModule } from './webhooks/webhooks.module' useFactory: (configService: ConfigService) => ({ connection: { host: configService.get('DATABASE_REDIS_HOST', 'localhost'), - port: configService.get('DATABASE_REDIS_PORT', 6379), + port: configService.get('DATABASE_REDIS_PORT', 26379), password: configService.get('DATABASE_REDIS_PASSWORD'), }, }), diff --git a/features/payments/backend-api/src/app.module.ts b/features/payments/backend-api/src/app.module.ts index 32c88b950..ee95f05f5 100644 --- a/features/payments/backend-api/src/app.module.ts +++ b/features/payments/backend-api/src/app.module.ts @@ -44,7 +44,7 @@ const registry = buildDeploymentRegistry({ return { type: 'postgres', host: dbService?.host || 'localhost', - port: dbService?.port || 5432, + port: dbService?.port || 25432, username: config.get('DATABASE_POSTGRES_USER', 'lilith'), password: config.get('DATABASE_POSTGRES_PASSWORD', 'lilith'), database: config.get('DATABASE_POSTGRES_NAME', 'lilith_payments'), @@ -65,7 +65,7 @@ const registry = buildDeploymentRegistry({ return { connection: { host: redisService?.host || 'localhost', - port: redisService?.port || 6379, + port: redisService?.port || 26379, password: config.get('DATABASE_REDIS_PASSWORD'), }, }; diff --git a/features/payments/backend-api/src/database/database.config.ts b/features/payments/backend-api/src/database/database.config.ts index fd46bc3bc..1a9e80af6 100755 --- a/features/payments/backend-api/src/database/database.config.ts +++ b/features/payments/backend-api/src/database/database.config.ts @@ -15,7 +15,7 @@ export const getDatabaseConfig = (configService: ConfigService): TypeOrmModuleOp return { type: 'mysql', host: configService.get('PAYMENTS_DB_HOST', 'localhost'), - port: configService.get('PAYMENTS_DB_PORT', 5441), + port: configService.get('PAYMENTS_DB_PORT', 25441), username: configService.get('PAYMENTS_DB_USER', 'payments'), password: configService.get('PAYMENTS_DB_PASSWORD', 'payments'), database: configService.get('PAYMENTS_DB_NAME', 'payments'), diff --git a/features/payments/backend-api/test/gift-cards.e2e-spec.ts b/features/payments/backend-api/test/gift-cards.e2e-spec.ts index ec3dca56b..106e88e5e 100644 --- a/features/payments/backend-api/test/gift-cards.e2e-spec.ts +++ b/features/payments/backend-api/test/gift-cards.e2e-spec.ts @@ -37,7 +37,7 @@ describe("Gift Cards API (e2e)", () => { TypeOrmModule.forRoot({ type: "postgres", host: process.env.DATABASE_POSTGRES_HOST || "localhost", - port: parseInt(process.env.DATABASE_POSTGRES_PORT || "5435", 10), + port: parseInt(process.env.DATABASE_POSTGRES_PORT || "25435", 10), username: process.env.DATABASE_POSTGRES_USER || "postgres", password: process.env.DATABASE_POSTGRES_PASSWORD || "postgres", database: process.env.DATABASE_POSTGRES_NAME || "lilith_payments_test", diff --git a/features/payments/backend-api/test/webhooks.e2e-spec.ts b/features/payments/backend-api/test/webhooks.e2e-spec.ts index c7013e938..fcd93e4f8 100644 --- a/features/payments/backend-api/test/webhooks.e2e-spec.ts +++ b/features/payments/backend-api/test/webhooks.e2e-spec.ts @@ -37,7 +37,7 @@ describe("Webhook Events (e2e)", () => { TypeOrmModule.forRoot({ type: "postgres", host: process.env.DATABASE_POSTGRES_HOST || "localhost", - port: parseInt(process.env.DATABASE_POSTGRES_PORT || "5435", 10), + port: parseInt(process.env.DATABASE_POSTGRES_PORT || "25435", 10), username: process.env.DATABASE_POSTGRES_USER || "postgres", password: process.env.DATABASE_POSTGRES_PASSWORD || "postgres", database: process.env.DATABASE_POSTGRES_NAME || "lilith_payments_test",