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 dotansimha committed Nov 27, 2016
1 parent bde51a5 commit cd0de50
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 cd0de50

Please sign in to comment.