Skip to content

Commit

Permalink
Step 9.7: Add owner
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored and DAB0mB committed Dec 14, 2016
1 parent a181ae6 commit 45c5582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/imports/app/parties/parties-form.component.ts
Expand Up @@ -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();
}
Expand Down

0 comments on commit 45c5582

Please sign in to comment.