Skip to content

Commit

Permalink
Step 3.3: Add some data to the parties collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent c33979c commit 49a3294
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions server/main.js
@@ -0,0 +1,21 @@
import { Meteor } from 'meteor/meteor';
import { Parties } from '../collections/parties';

Meteor.startup(() => {
if (Parties.find().count() === 0) {
const parties = [{
'name': 'Dubstep-Free Zone',
'description': 'Fast just got faster with Nexus S.'
}, {
'name': 'All dubstep all the time',
'description': 'Get it on!'
}, {
'name': 'Savage lounging',
'description': 'Leisure suit required. And only fiercest manners.'
}];

parties.forEach((party) => {
Parties.insert(party)
});
}
});

0 comments on commit 49a3294

Please sign in to comment.