lab4: вложения (proxy upload, download, уборщик), attachment_ids в сообщениях

This commit is contained in:
2026-10-22 22:28:54 +03:00
parent ec4e9fb608
commit 6fcc623447
23 changed files with 959 additions and 106 deletions
+5 -2
View File
@@ -36,12 +36,15 @@ export class DatabaseClient implements OnModuleDestroy {
connectionString: this.config.getOrThrow('DATABASE_URL'),
max: 1,
idleTimeoutMillis: 0,
connectionTimeoutMillis: this.config.getOrThrow('HEALTH_TIMEOUT_MS'),
connectionTimeoutMillis:
this.config.getOrThrow('HEALTH_TIMEOUT_MS'),
query_timeout: this.config.getOrThrow('HEALTH_TIMEOUT_MS'),
});
this.healthPool.on('error', (error: Error) => {
this.metrics.increment('database.health_pool_error');
this.logger.warn(`PostgreSQL health connection error: ${error.message}`);
this.logger.warn(
`PostgreSQL health connection error: ${error.message}`,
);
});
}