From 91eec825936a50a6a5b6c54a6427c6025f086e30 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()}`;