File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- Copyright 2023 Jannis R and contributors.
1+ Copyright 2024 Jannis R and contributors.
22
33This software is licensed under License Zero Prosperity 3.0.0 and contributions are licensed under Apache 2.0.
44
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ const convertGtfsToSql = async function* (files, opt = {}) {
4444 statsActiveTripsByHour,
4545 } = opt
4646 let postgraphilePassword = opt . postgraphilePassword
47- if ( postgraphilePassword === null ) {
47+ if ( opt . postgraphile && postgraphilePassword === null ) {
4848 postgraphilePassword = randomBytes ( 10 ) . toString ( 'hex' )
4949 console . error ( `PostGraphile PostgreSQL user's password:` , postgraphilePassword )
5050 }
5151 let postgrestPassword = opt . postgrestPassword
52- if ( postgrestPassword === null ) {
52+ if ( opt . postgrest && postgrestPassword === null ) {
5353 postgrestPassword = randomBytes ( 10 ) . toString ( 'hex' )
5454 console . error ( `PostrREST PostgreSQL user's password:` , postgrestPassword )
5555 }
You can’t perform that action at this time.
0 commit comments