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

10 lines
278 B
JavaScript
Raw Normal View History

2016-06-23 12:17:39 +09:00
const PostsStub = {
helpers: x => x
}
/* we need to handle two scenarios: when the package is called as a Meteor package,
and when it's called as a NPM package */
const Posts = typeof Mongo !== "undefined" ? new Mongo.Collection("posts") : PostsStub;
export default Posts;