From 252141560f8ffcf88f18347f2161b5f3c78ffe12 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 12 Feb 2021 23:09:38 +0100 Subject: Switch to minio v7 API The secure parameter is now called useSSL https://github.com/minio/minio-js/releases/tag/7.0.0 Signed-off-by: David Mehren --- bin/migrate_from_fs_to_minio | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/migrate_from_fs_to_minio') diff --git a/bin/migrate_from_fs_to_minio b/bin/migrate_from_fs_to_minio index 104c84c2..72d7c70c 100755 --- a/bin/migrate_from_fs_to_minio +++ b/bin/migrate_from_fs_to_minio @@ -18,7 +18,7 @@ if (config.dbURL) { const minioClient = new Minio.Client({ endPoint: config.minio.endPoint, port: config.minio.port, - secure: config.minio.secure, + useSSL: config.minio.secure, accessKey: config.minio.accessKey, secretKey: config.minio.secretKey }); @@ -49,7 +49,7 @@ fs.readdir(config.uploadsPath, function (err, files) { if (err) { console.log('Unable to scan directory: ' + err); process.exit(); - } + } files.forEach(function (file) { key = path.join('uploads', file) filePath = path.join(config.uploadsPath, file) -- cgit v1.2.3