website refactor

This commit is contained in:
2026-01-17 18:28:10 +01:00
parent 6d57f8b1ce
commit 64d9e7fd16
44 changed files with 1729 additions and 415 deletions

View File

@@ -65,7 +65,7 @@ export class DatabaseManager {
/**
* Execute query with automatic client management
*/
async query(text: string, params?: any[]): Promise<QueryResult> {
async query(text: string, params?: unknown[]): Promise<QueryResult> {
const client = await this.getClient();
return client.query(text, params);
}
@@ -138,8 +138,6 @@ export class DatabaseManager {
* Seed minimal test data
*/
async seedMinimalData(): Promise<void> {
const client = await this.getClient();
// Insert minimal required data for tests
// This will be extended based on test requirements
@@ -164,13 +162,13 @@ export class DatabaseManager {
ORDER BY log_time DESC
`, [since]);
return result.rows.map(r => r.message);
return (result.rows as { message: string }[]).map(r => r.message);
}
/**
* Get table constraints
*/
async getTableConstraints(tableName: string): Promise<any[]> {
async getTableConstraints(tableName: string): Promise<unknown[]> {
const client = await this.getClient();
const result = await client.query(`