Merge pull request #8 from overleaf/spd-default-opts

Add default parameter for 'opts' in MigrationPersistor.getObjectStream
This commit is contained in:
Simon Detheridge 2020-08-10 16:51:41 +01:00 committed by GitHub
commit c1f6554f1c

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 {