Skip to content

Commit e34cc29

Browse files
🥴 : few more changes before making public
1 parent f05e61d commit e34cc29

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ DATABASE_USERNAME=
55
DATABASE_PASSWORD=
66
DATABASE_NAME=
77
JWT_SECRET=
8-
MONGODB_HOST=
9-
MONGODB_DATABASE_NAME=

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,3 @@ pids
5555
# Diagnostic reports (https://nodejs.org/api/report.html)
5656
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
5757

58-
# locals
59-
src/**/*/*.localonly.ts

src/libs/db/db.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { TypeOrmModule } from '@nestjs/typeorm';
1414
password: configService.get('DATABASE_PASSWORD'),
1515
database: configService.get('DATABASE_NAME'),
1616
autoLoadEntities: true,
17-
synchronize: true,
18-
ssl: false,
17+
synchronize: true, //make false in prod
18+
ssl: false, //make true in prod
1919
}),
2020

2121
inject: [ConfigService],

src/libs/db/entities/user.entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class UserEntity {
3131
})
3232
status: string;
3333

34-
@Column({ nullable: true })
34+
@Column({ nullable: false })
3535
password: string;
3636

3737
@CreateDateColumn()

0 commit comments

Comments
 (0)