Skip to content

Commit

Permalink
Merge pull request rethinkdb#60 from rethinkdb/daniel_59
Browse files Browse the repository at this point in the history
store -> replace, fixes rethinkdb#59
  • Loading branch information
chipotle committed May 20, 2016
2 parents 7c3ee14 + aca09ba commit 896fe97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ horizon.users.find("D6B8E9D0-CD96-4C01-BFD6-2AF43141F2A7").fetch().subscribe(
(user) => {
// add a 'name' key
user.data.name = "Bob";
horizon.users.store(user);
horizon.users.replace(user);
}
);
```
Expand All @@ -58,7 +58,7 @@ horizon.users.find("D6B8E9D0-CD96-4C01-BFD6-2AF43141F2A7").fetch().subscribe(
(user) => {
// add to the 'admin' group
user.groups.push('admin');
horizon.users.store(user);
horizon.users.replace(user);
}
);
```
Expand Down

0 comments on commit 896fe97

Please sign in to comment.