From 4f45e8125c3a5f6bc9bd9e32f0b69717dfb2257b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 Oct 2018 17:25:53 +0900 Subject: [PATCH] Fix --- src/tools/move-drive-files.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/move-drive-files.ts b/src/tools/move-drive-files.ts index 23d1b9497..81a38c94d 100644 --- a/src/tools/move-drive-files.ts +++ b/src/tools/move-drive-files.ts @@ -23,6 +23,7 @@ DriveFile.find({ const minio = new Minio.Client(config.drive.config); + const name = file.filename; const keyDir = `${config.drive.prefix}/${uuid.v4()}`; const key = `${keyDir}/${name}`; const thumbnailKeyDir = `${config.drive.prefix}/${uuid.v4()}`;