File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ interface Extensions {
1818const deployFastCache : Record < string , Awaited < ReturnType < typeof packageModule > > > = { } ;
1919
2020const getCacheKey = (
21- pg : Partial < PgConfig > | undefined ,
21+ pg : PgConfig ,
2222 name : string ,
2323 database : string
2424) : string => {
2525 const { host, port, user } = pg ?? { } ;
26- return `${ host ?? 'localhost' } :${ port ?? 5432 } :${ user ?? 'user' } :${ database } :${ name } ` ;
26+ return `${ host } :${ port } :${ user } :${ database } :${ name } ` ;
2727} ;
2828
2929const log = new Logger ( 'deploy' ) ;
@@ -84,7 +84,7 @@ export const deploy = async (
8484 if ( options ?. fast ?? true ) {
8585 // Use fast deployment strategy
8686 const localProject = new LaunchQLProject ( modulePath ) ;
87- const cacheKey = getCacheKey ( opts . pg , extension , database ) ;
87+ const cacheKey = getCacheKey ( opts . pg as PgConfig , extension , database ) ;
8888
8989 if ( options ?. cache && deployFastCache [ cacheKey ] ) {
9090 log . warn ( `⚡ Using cached pkg for ${ extension } .` ) ;
You can’t perform that action at this time.
0 commit comments