forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
@@ -102,8 +102,9 @@ export class DatabaseSeederService implements OnApplicationBootstrap {
|
||||
|
||||
private resolveSeedPath(): string {
|
||||
const candidates = [
|
||||
join(__dirname, '..', 'public', this.usersSeedFile),
|
||||
join(process.cwd(), 'src', 'public', this.usersSeedFile),
|
||||
join(__dirname, 'seeds', this.usersSeedFile),
|
||||
join(process.cwd(), 'src', 'database', 'seeds', this.usersSeedFile),
|
||||
join(process.cwd(), 'dist', 'database', 'seeds', this.usersSeedFile),
|
||||
];
|
||||
|
||||
const seedPath = candidates.find((candidate) => existsSync(candidate));
|
||||
|
||||
Reference in New Issue
Block a user