Skip to content

Commit ab68220

Browse files
committed
chore: fix
1 parent bfd6086 commit ab68220

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • packages/cubejs-backend-shared/src

packages/cubejs-backend-shared/src/env.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ const variables = {
558558
dataSource,
559559
}: {
560560
dataSource: string,
561-
}): { user: string; password: string | undefined } | undefined => {
561+
}): { user: string; password?: string } | undefined => {
562562
const user = getEnvFn('dbUser')({
563563
dataSource,
564564
});
@@ -571,10 +571,14 @@ const variables = {
571571
);
572572
}
573573

574-
if (user) {
574+
if (user && password) {
575575
return { user, password };
576576
}
577577

578+
if (user) {
579+
return { user };
580+
}
581+
578582
return undefined;
579583
},
580584

0 commit comments

Comments
 (0)