fix: group cover upload not working for s3 upload (#7571)

This commit is contained in:
jayjay9
2019-05-01 06:35:47 -07:00
committed by Barış Soner Uşaklı
parent b990312088
commit 8945ebcb81

View File

@@ -38,6 +38,7 @@ module.exports = function (Groups) {
image.uploadImage(filename, 'files', { image.uploadImage(filename, 'files', {
path: tempPath, path: tempPath,
uid: uid, uid: uid,
name: 'groupCover',
}, next); }, next);
}, },
function (uploadData, next) { function (uploadData, next) {
@@ -54,6 +55,7 @@ module.exports = function (Groups) {
image.uploadImage('groupCoverThumb-' + data.groupName + path.extname(tempPath), 'files', { image.uploadImage('groupCoverThumb-' + data.groupName + path.extname(tempPath), 'files', {
path: tempPath, path: tempPath,
uid: uid, uid: uid,
name: 'groupCover',
}, next); }, next);
}, },
function (uploadData, next) { function (uploadData, next) {