Vulcan/packages/nova-newsletter/lib/collection.js

47 lines
945 B
JavaScript
Raw Normal View History

// Telescope.newsletter = {};
2016-02-24 10:27:46 +09:00
// var campaignSchema = new SimpleSchema({
// _id: {
// type: String,
// optional: true
// },
// createdAt: {
// type: Date,
// optional: true
// },
// sentAt: {
// type: String,
// optional: true
// },
// status: {
// type: String,
// optional: true
// },
// posts: {
// type: [String],
// optional: true
// },
// webHits: {
// type: Number,
// optional: true
// },
// });
2016-02-24 10:27:46 +09:00
// const Campaigns = new Meteor.Collection("campaigns", {
// schema: campaignSchema
// });
2016-02-24 10:27:46 +09:00
// // create new "campaign" view for all posts from the past X days that haven't been scheduled yet
// Posts.views.add("campaign", function (terms) {
// return {
// find: {
// scheduledAt: {$exists: false},
// postedAt: {
// $gte: terms.after
// }
// },
// options: {sort: {baseScore: -1}}
// };
// });
// export default Campaigns;