Skip to content

Commit d7bc0b8

Browse files
authored
[remove] Pass s3 params to the call to Model.remove
useful for passing Bucket for example
1 parent ea21c13 commit d7bc0b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ class Service {
131131
});
132132
}
133133

134-
remove (id) {
134+
remove (id, params = {}) {
135135
debug(`Removing blob ${id}`);
136136
return new Promise((resolve, reject) => {
137137
this.Model.remove({
138-
key: id
138+
key: id,
139+
params: params.s3
139140
}, error => error ? reject(error) : resolve({ [this.id]: id }));
140141
});
141142
}

0 commit comments

Comments
 (0)