use backgroundImage if its passed in

This commit is contained in:
Barış Soner Uşaklı
2017-05-25 20:24:37 -04:00
parent 79a48cec5f
commit 02dee48329

View File

@@ -43,6 +43,10 @@ module.exports = function (Categories) {
imageClass: 'cover',
};
if (data.backgroundImage) {
category.backgroundImage = data.backgroundImage;
}
plugins.fireHook('filter:category.create', { category: category, data: data }, next);
},
function (data, next) {