Skip to content

Commit

Permalink
comiit final445456
Browse files Browse the repository at this point in the history
  • Loading branch information
dbruidb committed May 5, 2024
1 parent c6c18fa commit 5c1c6ed
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/tsconfig.build.tsbuildinfo

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/typeorm/typeorm.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/typeorm/typeorm.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/users/user.entity.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/users/user.entity.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions src/typeorm/typeorm.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,25 @@ export class TypeormService implements TypeOrmOptionsFactory{

}
createTypeOrmOptions(): TypeOrmModuleOptions | Promise<TypeOrmModuleOptions> {
return {
/* return {
type: 'postgres',
host: process.env.DB_HOST,
port: Number(process.env.DB_PORT),
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
database: process.env.DB_DATABASE,*/
// entities: [__dirname + '/../**/*.entity{.js,.ts}'],
/* synchronize: true,
logging: true
}*/

return {
type: 'postgres',
host: 'user-prod-us-east-2-1.cluster-cfi5vnucvv3w.us-east-2.rds.amazonaws.com',
port: 5432,
username: 'zc-tournaments-main-db-0efa305efb27bd039',
password: 'kZWGaX3h7VcFReASyFQMkfh5mFS21k',
database: 'zc-tournaments-main-db-0efa305efb27bd039',
entities: [__dirname + '/../**/*.entity{.js,.ts}'],
synchronize: true,
logging: true
Expand Down
2 changes: 1 addition & 1 deletion src/users/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class UserEntity{
username: string
@Column({type: "varchar", length:20})
password: string
@Column({type:"enum", enum: Role, default:"Client"})
@Column({type:"enum", enum: Role, default: Role.CLIENT})
role: string

}

0 comments on commit 5c1c6ed

Please sign in to comment.