fix: standardize startup database retries

This commit is contained in:
Gabriel20xx committed 2026-09-23 04:56:32 +02:00
1 parent c743ee7f5b
commit b85601ae32
5 files changed
+225 -24

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ legacy package as a compatibility layer until every consumer has moved.
Pass a service-specific `tableName` to `runMigrations` when multiple services
share one PostgreSQL database, so their migration histories cannot collide.
Database startup uses `DB_INIT_RETRY_INTERVAL_MS` (default `5000`, minimum
`250`) and `DB_INIT_RETRY_MAX_ATTEMPTS` (default `0`, retry indefinitely).
Run `npm test` from this package or `npm run test --workspace=@gabriel20xx/node-backend` from `shared`.
## `authclient`/`coreconfig`: adopting AuthGuard instead of local auth