website refactor
This commit is contained in:
@@ -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(`
|
||||
|
||||
Reference in New Issue
Block a user