diff --git a/src/database/driver/postgres.ts b/src/database/driver/postgres.ts index b280e8b9..9d706639 100644 --- a/src/database/driver/postgres.ts +++ b/src/database/driver/postgres.ts @@ -72,6 +72,8 @@ export async function createPostgresDatabase( Array.isArray(existResult.rows) && existResult.rows.length > 0 ) { + await connection.end(); + return Promise.resolve(); } }