mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
17 lines
422 B
JavaScript
17 lines
422 B
JavaScript
![]() |
import Categories from './collection.js'
|
||
|
import PublicationsUtils from 'meteor/utilities:smart-publications';
|
||
|
|
||
|
Categories.publishedFields = {};
|
||
|
|
||
|
/**
|
||
|
* @summary Specify which fields should be published by the categories publication
|
||
|
* @array Categories.publishedFields.list
|
||
|
*/
|
||
|
Categories.publishedFields.list = PublicationsUtils.arrayToFields([
|
||
|
"name",
|
||
|
"description",
|
||
|
"order",
|
||
|
"slug",
|
||
|
"image",
|
||
|
"parentId",
|
||
|
]);
|