Modifie le type de paramètre de initializeClients
Change le type du paramètre dbConfig de `any` à `object` pour renforcer le typage et éviter les erreurs potentielles. Cela améliore la robustesse et la maintenabilité du code.
This commit is contained in:
parent
948acaa680
commit
c0960519ae
@ -27,7 +27,7 @@ export class DbService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private initializeClients(dbConfig: any) {
|
private initializeClients(dbConfig: object) {
|
||||||
this.migrationClient = postgres({
|
this.migrationClient = postgres({
|
||||||
...dbConfig,
|
...dbConfig,
|
||||||
max: 1,
|
max: 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user