Commit 6ecf5553 authored by nanahira's avatar nanahira

support refetch

parent 261963ad
Pipeline #14765 passed with stages
in 4 minutes and 28 seconds
...@@ -28,7 +28,8 @@ import { HttpModule } from '@nestjs/axios'; ...@@ -28,7 +28,8 @@ import { HttpModule } from '@nestjs/axios';
type: 'postgres', type: 'postgres',
entities: [Blacklist, BlacklistAccount], entities: [Blacklist, BlacklistAccount],
autoLoadEntities: true, autoLoadEntities: true,
synchronize: !config.get('DB_NO_INIT'), synchronize: !config.get('DB_NO_INIT') || !!config.get('REFETCH'),
dropSchema: !!config.get('REFETCH'),
host: config.get('DB_HOST'), host: config.get('DB_HOST'),
port: parseInt(config.get('DB_PORT')) || 5432, port: parseInt(config.get('DB_PORT')) || 5432,
username: config.get('DB_USER'), username: config.get('DB_USER'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment