We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd6086 commit ab68220Copy full SHA for ab68220
1 file changed
packages/cubejs-backend-shared/src/env.ts
@@ -558,7 +558,7 @@ const variables = {
558
dataSource,
559
}: {
560
dataSource: string,
561
- }): { user: string; password: string | undefined } | undefined => {
+ }): { user: string; password?: string } | undefined => {
562
const user = getEnvFn('dbUser')({
563
564
});
@@ -571,10 +571,14 @@ const variables = {
571
);
572
}
573
574
- if (user) {
+ if (user && password) {
575
return { user, password };
576
577
578
+ if (user) {
579
+ return { user };
580
+ }
581
+
582
return undefined;
583
},
584
0 commit comments