chore(src): 🔧 Update TypeScript files in src directory (9 total)
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
c3c572738a
commit
3dc9ef3660
9 changed files with 11 additions and 11 deletions
|
|
@ -58,7 +58,7 @@ const registry = buildDeploymentRegistry({
|
|||
return {
|
||||
type: 'postgres',
|
||||
host: dbService?.host || 'localhost',
|
||||
port: dbService?.port || 5432,
|
||||
port: dbService?.port || 25432,
|
||||
username: configService.get('DATABASE_POSTGRES_USER', 'lilith'),
|
||||
password: configService.get('DATABASE_POSTGRES_PASSWORD', 'lilith'),
|
||||
database: configService.get('DATABASE_POSTGRES_NAME', 'lilith_conversation_assistant'),
|
||||
|
|
@ -80,7 +80,7 @@ const registry = buildDeploymentRegistry({
|
|||
useFactory: async (configService: ConfigService) => {
|
||||
const redisService = registry.services.get('conversation-assistant.redis');
|
||||
const redisHost = redisService?.host || 'localhost';
|
||||
const redisPort = redisService?.port || 6379;
|
||||
const redisPort = redisService?.port || 26379;
|
||||
const redisUrl = configService.get('DATABASE_REDIS_URL') || `redis://${redisHost}:${redisPort}`;
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { DataSource } from 'typeorm';
|
|||
export const AppDataSource = new DataSource({
|
||||
type: 'postgres',
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT || '5433', 10),
|
||||
port: parseInt(process.env.DB_PORT || '25433', 10),
|
||||
username: process.env.DB_USER || 'lilith',
|
||||
password: process.env.DB_PASSWORD || 'analytics_dev',
|
||||
database: process.env.DB_NAME || 'conversation_assistant',
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ interface TrainingSampleData {
|
|||
async function backfillTrainingSamples() {
|
||||
const client = new Client({
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT || '5432', 10),
|
||||
port: parseInt(process.env.DB_PORT || '25432', 10),
|
||||
user: process.env.DB_USER || 'lilith',
|
||||
password: process.env.DB_PASSWORD || 'lilith',
|
||||
database: process.env.DB_NAME || 'conversation_assistant',
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ const TRAINING_SAMPLES = [
|
|||
async function seedTrainingSamples() {
|
||||
const client = new Client({
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT || '5432', 10),
|
||||
port: parseInt(process.env.DB_PORT || '25432', 10),
|
||||
user: process.env.DB_USER || 'lilith',
|
||||
password: process.env.DB_PASSWORD || 'lilith',
|
||||
database: process.env.DB_NAME || 'conversation_assistant',
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ describe('Conversation Assistant API (E2E)', () => {
|
|||
TypeOrmModule.forRoot({
|
||||
type: 'postgres',
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: parseInt(process.env.DB_PORT || '5433', 10),
|
||||
port: parseInt(process.env.DB_PORT || '25433', 10),
|
||||
username: process.env.DB_USER || 'postgres',
|
||||
password: process.env.DB_PASSWORD || 'devpassword',
|
||||
database: process.env.DB_NAME_TEST || 'conversation_assistant_test',
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ fi
|
|||
|
||||
# Database connection from environment
|
||||
DB_HOST="${DB_HOST:-localhost}"
|
||||
DB_PORT="${DB_PORT:-5433}"
|
||||
DB_PORT="${DB_PORT:-25433}"
|
||||
DB_USER="${DB_USER:-postgres}"
|
||||
DB_PASSWORD="${DB_PASSWORD:-devpassword}"
|
||||
DB_NAME="${DB_NAME:-conversation_assistant}"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ fi
|
|||
|
||||
# Database connection from environment
|
||||
DB_HOST="${DB_HOST:-localhost}"
|
||||
DB_PORT="${DB_PORT:-5433}"
|
||||
DB_PORT="${DB_PORT:-25433}"
|
||||
DB_USER="${DB_USER:-postgres}"
|
||||
DB_PASSWORD="${DB_PASSWORD:-devpassword}"
|
||||
DB_NAME="${DB_NAME:-conversation_assistant}"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class ConversationDB:
|
|||
def __init__(
|
||||
self,
|
||||
host: str = "localhost",
|
||||
port: int = 5433,
|
||||
port: int = 25433,
|
||||
user: str = "postgres",
|
||||
password: str = "devpassword",
|
||||
database: str = "conversation_assistant",
|
||||
|
|
@ -66,7 +66,7 @@ class ConversationDB:
|
|||
"""Create client from environment variables."""
|
||||
return cls(
|
||||
host=os.getenv("DB_HOST", "localhost"),
|
||||
port=int(os.getenv("DB_PORT", "5433")),
|
||||
port=int(os.getenv("DB_PORT", "25433")),
|
||||
user=os.getenv("DB_USER", "postgres"),
|
||||
password=os.getenv("DB_PASSWORD", "devpassword"),
|
||||
database=os.getenv("DB_NAME", "conversation_assistant"),
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ FRONTEND_PORT="${FRONTEND_PORT:-5173}"
|
|||
|
||||
# Database configuration (defaults for local dev)
|
||||
DB_HOST="${DB_HOST:-localhost}"
|
||||
DB_PORT="${DB_PORT:-5432}"
|
||||
DB_PORT="${DB_PORT:-25432}"
|
||||
DB_USER="${DB_USER:-lilith}"
|
||||
DB_PASSWORD="${DB_PASSWORD:-lilith}"
|
||||
DB_NAME="${DB_NAME:-conversation_assistant}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue