Skip to content

Commit bb1a660

Browse files
committed
Added promises to remove and install
1 parent dd1f21b commit bb1a660

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ module.exports = function(S) { // Always pass in the ServerlessPlugin Class
108108
*/
109109

110110
remove() {
111-
//return dynamodb.remove();
112-
return dynamodbLocal.remove(function(){});
111+
return new BbPromise(function(resolve, reject) {
112+
dynamodbLocal.remove(resolve);
113+
});
113114
}
114115

115116
install() {
116-
//return dynamodb.remove();
117-
return dynamodbLocal.install(function(){
118-
117+
return new BbPromise(function(resolve, reject) {
118+
dynamodbLocal.install(resolve);
119119
});
120120
}
121121

0 commit comments

Comments
 (0)