fix: databaseUrlFromResource uses proper database field

This commit is contained in:
Ruben Fiszel
2022-06-29 20:47:08 +02:00
parent b91fe85b7b
commit 6954580801
+1 -1
View File
@@ -126,5 +126,5 @@ async function _transformLeaf(v: any): Promise<any> {
export async function databaseUrlFromResource(path: string): Promise<string> {
const resource = await getResource(path)
return `postgresql://${resource.user}:${resource.password}@${resource.host}:${resource.port}/${resource.database}?sslmode=${resource.sslmode}`
return `postgresql://${resource.user}:${resource.password}@${resource.host}:${resource.port}/${resource.dbname}?sslmode=${resource.sslmode}`
}