Skip to content

Commit 4c83f2a

Browse files
committed
Fixed start
1 parent f274358 commit 4c83f2a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function(S) { // Always pass in the ServerlessPlugin Class
110110
remove() {
111111
//return dynamodb.remove();
112112
return dynamodbLocal.remove(function(){
113-
113+
console.log("hello");
114114
});
115115
}
116116

@@ -153,12 +153,15 @@ module.exports = function(S) { // Always pass in the ServerlessPlugin Class
153153
config && config.start
154154
);
155155
if (options.create) {
156-
dynamodbLocal.start(options).then(function() {
157-
console.log(""); // seperator
158-
self.table(evt).then(resolve, reject);
159-
});
156+
dynamodbLocal.start(options)//.then(function() {
157+
console.log("started1"); // seperator
158+
self.table(evt) //.then(resolve, reject);
159+
resolve();
160+
//});
160161
} else {
161-
dynamodbLocal.start(options).then(resolve, reject);
162+
dynamodbLocal.start(options)//.then(resolve, reject);
163+
console.log("started2"); // seperator
164+
resolve();
162165
}
163166
});
164167
}

0 commit comments

Comments
 (0)