File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " pipeline" ,
33 "description" : " Be less busy, less mistake in Salesforce metadata deploy" ,
4- "version" : " 2.0.3 " ,
4+ "version" : " 2.0.4 " ,
55 "private" : false ,
66 "main" : " src/main.js" ,
77 "dependencies" : {
Original file line number Diff line number Diff line change @@ -367,10 +367,13 @@ class GitApi {
367367 }
368368 let metaPath = metadata . getMetadataFolder ( self . pipeline . id ) ;
369369 metaPath = path . join ( metaPath , 'src' ) ;
370- fse . copy ( gitPath , metaPath , function ( err ) {
371- if ( err ) return reject ( err ) ;
372- return resolve ( success ) ;
373- } ) ;
370+ // Fix reset timing bug, not perfect!
371+ setTimeout ( function ( ) {
372+ fse . copy ( gitPath , metaPath , function ( err ) {
373+ if ( err ) return reject ( err ) ;
374+ return resolve ( success ) ;
375+ } ) ;
376+ } , 1000 ) ;
374377 } )
375378 . catch ( function ( err ) {
376379 return reject ( err ) ;
You can’t perform that action at this time.
0 commit comments