Vulcan/packages/nova-cloudinary/lib/custom_fields.js

21 lines
366 B
JavaScript

import Posts from "meteor/nova:posts";
Posts.addField([
{
fieldName: 'cloudinaryId',
fieldSchema: {
type: String,
optional: true,
viewableIf: ['anonymous'],
}
},
{
fieldName: 'cloudinaryUrls',
fieldSchema: {
type: [Object],
optional: true,
blackbox: true,
viewableIf: ['anonymous'],
}
}
]);