Update src/app.service.ts

This commit is contained in:
Codevice Solution Pvt Ltd 2025-08-14 07:35:48 +00:00
parent 3185762359
commit 26465e1a46

View File

@ -23,10 +23,10 @@ export class AppService {
const dbConfig = this.configService.getDbConfig(); const dbConfig = this.configService.getDbConfig();
if (this.modelFilePaths.length > 0) { if (this.modelFilePaths.length > 0) {
this.commonService.sequelize = new Sequelize({ this.commonService.sequelize = new Sequelize({
database: dbConfig.database, database: "192.168.0.113",
dialect: 'postgres', dialect: 'postgres',
username: dbConfig.user, username: "postgres",
password: dbConfig.password, password: "FAdDoCwhmi3BvkK4pgEGDc7EspmDtHYV4y93748Xz6VysJKPdlsaU3L9N9k7OD9t",
models: this.modelFilePaths, models: this.modelFilePaths,
modelMatch: (filename, member) => { modelMatch: (filename, member) => {
return filename.substring(0, filename.indexOf('.entity')) === member.toLowerCase(); return filename.substring(0, filename.indexOf('.entity')) === member.toLowerCase();