mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
11 lines
No EOL
303 B
JavaScript
11 lines
No EOL
303 B
JavaScript
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;
|
|
|
|
Posts.typeName = 'Post';
|
|
|
|
export default Posts; |