Permalink
Browse files

Step 4.5: Add initial Parties

  • Loading branch information...
1 parent 8df028c commit 3f6ee16dd0068ebf4fc019b22c51503957c3508f @kamilkisiela kamilkisiela committed with DAB0mB Sep 21, 2016
Showing with 21 additions and 0 deletions.
  1. +21 −0 server/imports/fixtures/parties.ts
@@ -0,0 +1,21 @@
+import { Parties } from '../../../both/collections/parties.collection';
+
+export function loadParties() {
+ if (Parties.find().cursor.count() === 0) {
+ const parties = [{
+ name: 'Dubstep-Free Zone',
+ description: 'Can we please just for an evening not listen to dubstep.',
+ location: 'Palo Alto'
+ }, {
+ name: 'All dubstep all the time',
+ description: 'Get it on!',
+ location: 'Palo Alto'
+ }, {
+ name: 'Savage lounging',
+ description: 'Leisure suit required. And only fiercest manners.',
+ location: 'San Francisco'
+ }];
+
+ parties.forEach((party) => Parties.insert(party));
+ }
+}

0 comments on commit 3f6ee16

Please sign in to comment.