This commit is contained in:
syuilo
2018-08-16 08:11:21 +09:00
parent 1fc9206c6d
commit ac15c2e71f
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ async function save(path: string, name: string, type: string, hash: string, size
});
if (thumbnail) {
await minio.putObject(config.drive.bucket, thumbnailObj, fs.createReadStream(path), size, {
await minio.putObject(config.drive.bucket, thumbnailObj, thumbnail, size, {
'Content-Type': 'image/jpeg',
'Cache-Control': 'max-age=31536000, immutable'
});