File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pipeline" ,
3
3
"description" : " Be less busy, less mistake in Salesforce metadata deploy" ,
4
- "version" : " 2.0.3 " ,
4
+ "version" : " 2.0.4 " ,
5
5
"private" : false ,
6
6
"main" : " src/main.js" ,
7
7
"dependencies" : {
Original file line number Diff line number Diff line change @@ -367,10 +367,13 @@ class GitApi {
367
367
}
368
368
let metaPath = metadata . getMetadataFolder ( self . pipeline . id ) ;
369
369
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 ) ;
374
377
} )
375
378
. catch ( function ( err ) {
376
379
return reject ( err ) ;
You can’t perform that action at this time.
0 commit comments