Skip to content

Commit f9c3033

Browse files
committed
FIX: use admin user for db connection setup
1 parent 29168b2 commit f9c3033

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ MIN_RECAPTCHA_SCORE=.5
3737
RECAPTCHA_VERIFY_URL=https://www.google.com/recaptcha/api/siteverify
3838
DEFAULT_ADMIN_PASSWORD=adminpassword
3939
INVITATION_TOKEN_EXPTIME = 7d
40+
AUTH_KEY=

src/database/database.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { SnakeNamingStrategy } from 'typeorm-naming-strategies';
1212
type: 'postgres',
1313
host: configService.get('POSTGRES_HOST'),
1414
port: configService.get('POSTGRES_PORT'),
15-
username: configService.get('POSTGRES_USER'),
16-
password: configService.get('POSTGRES_PASSWORD'),
15+
username: configService.get('POSTGRES_ADMIN_USER'),
16+
password: configService.get('POSTGRES_ADMIN_PASSWORD'),
1717
database: configService.get('POSTGRES_DB'),
1818
entities: [
1919
__dirname + '/../**/*.entity.ts',

0 commit comments

Comments
 (0)