File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,11 @@ class ServerlessDynamodbLocal {
168
168
} ) ;
169
169
}
170
170
171
- executeAllHandler ( ) {
172
- let self = this ;
171
+ executeAllHandler ( isOffline ) {
172
+ let self = this ,
173
+ region = isOffline ? null :self . service . provider . region
173
174
return new BbPromise ( function ( resolve , reject ) {
174
- let dynamodb = self . dynamodbOptions ( self . service . provider . region ) ,
175
+ let dynamodb = self . dynamodbOptions ( region ) ,
175
176
tableOptions = self . tableOptions ( ) ;
176
177
dynamodbMigrations . init ( dynamodb , tableOptions . path ) ;
177
178
dynamodbMigrations . executeAll ( tableOptions ) . then ( resolve , reject ) ;
@@ -206,7 +207,7 @@ class ServerlessDynamodbLocal {
206
207
if ( options . migration ) {
207
208
dynamodbLocal . start ( options ) ;
208
209
console . log ( "" ) ; // seperator
209
- self . executeAllHandler ( ) ;
210
+ self . executeAllHandler ( true ) ;
210
211
resolve ( ) ;
211
212
} else {
212
213
dynamodbLocal . start ( options ) ;
You can’t perform that action at this time.
0 commit comments