Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
repair because the channel classification led to system crash
Browse files Browse the repository at this point in the history
  • Loading branch information
welkinwong committed Dec 10, 2016
1 parent f24b196 commit 2770519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/categories.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.all = function (callback) {

// 删除非单页分类的 pageMedia
_.map(categories, function (category) {
if (category.type !== 'page') delete category.mixed.pageMedia;
if (category.type !== 'page' && category.mixed) delete category.mixed.pageMedia;
});

cache.set('categories', categories, 1000 * 60 * 60 * 24);
Expand Down

0 comments on commit 2770519

Please sign in to comment.