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 = {
98
98
var keyPrefix = this . readConfig ( 'keyPrefix' ) ;
99
99
100
100
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
+ } ) ;
107
109
} ,
108
110
109
111
activate : function ( /* context */ ) {
@@ -136,7 +138,7 @@ module.exports = {
136
138
fetchInitialRevisions : function ( /* context */ ) {
137
139
var redisDeployClient = this . readConfig ( 'redisDeployClient' ) ;
138
140
var keyPrefix = this . readConfig ( 'keyPrefix' ) ;
139
-
141
+
140
142
this . log ( 'Listing initial revisions for key: `' + keyPrefix + '`' , { verbose : true } ) ;
141
143
return Promise . resolve ( redisDeployClient . fetchRevisions ( keyPrefix ) )
142
144
. then ( function ( revisions ) {
You can’t perform that action at this time.
0 commit comments