Permalink
Browse files

Step 9.7: Add owner

  • Loading branch information...
1 parent a181ae6 commit 45c55826dbebf30b1bc80d4a677384b640054070 @kamilkisiela kamilkisiela committed with DAB0mB Sep 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/imports/app/parties/parties-form.component.ts
@@ -32,7 +32,7 @@ export class PartiesFormComponent implements OnInit {
}
if (this.addForm.valid) {
- Parties.insert(this.addForm.value);
+ Parties.insert(Object.assign({}, this.addForm.value, { owner: Meteor.userId() }));
this.addForm.reset();
}

0 comments on commit 45c5582

Please sign in to comment.