2016-06-28 17:33:30 +09:00
|
|
|
import Posts from "meteor/nova:posts";
|
|
|
|
|
2016-05-31 10:53:23 +09:00
|
|
|
Posts.addField([
|
|
|
|
{
|
2016-07-11 11:47:00 +09:00
|
|
|
fieldName: 'cloudinaryId',
|
2016-05-31 10:53:23 +09:00
|
|
|
fieldSchema: {
|
|
|
|
type: String,
|
2016-10-30 18:25:51 +01:00
|
|
|
optional: true,
|
2016-12-06 10:55:47 +01:00
|
|
|
viewableBy: ['guests'],
|
2016-05-31 10:53:23 +09:00
|
|
|
}
|
2016-07-11 11:47:00 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
fieldName: 'cloudinaryUrls',
|
|
|
|
fieldSchema: {
|
|
|
|
type: [Object],
|
2016-10-30 18:25:51 +01:00
|
|
|
blackbox: true,
|
2016-12-14 11:29:52 +09:00
|
|
|
optional: true,
|
2016-12-06 10:55:47 +01:00
|
|
|
viewableBy: ['guests'],
|
2016-12-14 11:29:52 +09:00
|
|
|
resolveAs: 'cloudinaryUrls: [JSON]',
|
2016-07-11 11:47:00 +09:00
|
|
|
}
|
2016-05-31 10:53:23 +09:00
|
|
|
}
|
|
|
|
]);
|