File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,14 @@ module.exports = {
9898 var keyPrefix = this . readConfig ( 'keyPrefix' ) ;
9999
100100 var revisionKey = redisDeployClient . activeRevision ( keyPrefix ) ;
101-
102- return {
103- revisionData : {
104- previousRevisionKey : revisionKey
105- }
106- } ;
101+
102+ return Promise . resolve ( revisionKey ) . then ( function ( previousRevisionKey ) {
103+ return {
104+ revisionData : {
105+ previousRevisionKey : previousRevisionKey
106+ }
107+ } ;
108+ } ) ;
107109 } ,
108110
109111 activate : function ( /* context */ ) {
@@ -136,7 +138,7 @@ module.exports = {
136138 fetchInitialRevisions : function ( /* context */ ) {
137139 var redisDeployClient = this . readConfig ( 'redisDeployClient' ) ;
138140 var keyPrefix = this . readConfig ( 'keyPrefix' ) ;
139-
141+
140142 this . log ( 'Listing initial revisions for key: `' + keyPrefix + '`' , { verbose : true } ) ;
141143 return Promise . resolve ( redisDeployClient . fetchRevisions ( keyPrefix ) )
142144 . then ( function ( revisions ) {
You can’t perform that action at this time.
0 commit comments