Skip to content

Commit

Permalink
Unable create a new category #7
Browse files Browse the repository at this point in the history
  • Loading branch information
conruacodon committed Jun 5, 2021
1 parent b1a8efb commit 4b28f1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/category/models/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const {
* to customize this model
*/

const _lifecycle = new ModelLifeCycle(
'category',
ContentType.category,
'document',
);
const _lifecycle = new ModelLifeCycle({
content: 'category',
type: ContentType.category,
section: 'document',
});

function _addMenu(result) {
result.menu = {
Expand Down

0 comments on commit 4b28f1e

Please sign in to comment.