mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Update removeGettingStartedContent() to work without a method
This commit is contained in:
parent
1e9ddbb92b
commit
5466545683
2 changed files with 4 additions and 3 deletions
|
@ -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!
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue