Update removeGettingStartedContent() to work without a method

This commit is contained in:
SachaG 2017-04-16 09:47:33 +09:00
parent 1e9ddbb92b
commit 5466545683
2 changed files with 4 additions and 3 deletions

View file

@ -2,10 +2,10 @@
If you're ready to insert your own content and want to delete these getting started posts, comments, and users, you can do so with a single command.
Just make sure you're logged in, then open your [browser console](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) and type:
Open a new [Meteor shell](https://docs.meteor.com/commandline.html#meteorshell) and type:
```js
Meteor.call('removeGettingStartedContent');
Vulcan.removeGettingStartedContent()
```
See you on the other side!

View file

@ -133,10 +133,11 @@ var createDummyComments = function () {
};
const deleteDummyContent = function () {
Vulcan.removeGettingStartedContent = () => {
Users.remove({'profile.isDummy': true});
Posts.remove({isDummy: true});
Comments.remove({isDummy: true});
console.log('// Getting started content removed');
};
Meteor.startup(function () {