Add default parameter for 'opts' in MigrationPersistor.getObjectStream

This commit is contained in:
Simon Detheridge
2020-08-10 16:44:37 +01:00
parent d5fd892f43
commit 1115e1a1e6

View File

@@ -63,7 +63,7 @@ module.exports = class MigrationPersistor extends AbstractPersistor {
return this._runOnBoth('deleteDirectory', ...args)
}
async getObjectStream(bucket, key, opts) {
async getObjectStream(bucket, key, opts = {}) {
const shouldCopy = this.settings.copyOnMiss && !opts.start && !opts.end
try {