fix pg db

This commit is contained in:
Morten Olsen
2025-08-11 14:35:15 +02:00
parent 47cf43b44e
commit ddb3c79657
3 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ type PostgresInstanceOptions = {
port?: number;
user: string;
password: string;
database?: string;
};
class PostgresInstance {
@@ -23,6 +24,7 @@ class PostgresInstance {
user: process.env.FORCE_PG_USER ?? options.user,
password: process.env.FORCE_PG_PASSWORD ?? options.password,
port: process.env.FORCE_PG_PORT ? parseInt(process.env.FORCE_PG_PORT) : options.port,
database: options.database,
},
});
}