mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
17 lines
No EOL
422 B
JavaScript
17 lines
No EOL
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",
|
|
]); |