Skip to content

Commit 050dfc2

Browse files
committed
chore: change file name
1 parent 207fbc4 commit 050dfc2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import { PoolClient, QueryResult, QueryResultRow } from 'pg';
2-
import { Catch } from '../../decorators/Catch';
3-
42
export class DatabaseService {
53
constructor(private _client: PoolClient) {}
64

75
/**
86
* Runs a query with parameters and returns the result.
97
*/
10-
@Catch()
118
async query<T extends QueryResultRow>(sql: string, params: any[] = []): Promise<QueryResult<T>> {
129
return await this._client.query<T>(sql, params);
1310
}

0 commit comments

Comments
 (0)