Skip to content

Commit 76bcf6f

Browse files
committed
breaking change: auth.update now calls different endpoint.
1 parent efa5616 commit 76bcf6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "hook-javascript",
33
"title": "hook javascript client",
44
"description": "hook javascript client",
5-
"version": "0.3.1",
5+
"version": "0.3.2",
66
"homepage": "http://github.com/doubleleft/hook-javascript",
77
"main": "dist/hook.js",
88
"authors": [{

src/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Hook.Auth.prototype.update = function(data) {
129129
}
130130

131131
var that = this;
132-
var promise = this.client.collection('auth').update(this.currentUser._id, data);
132+
var promise = this.client.post('auth/update', data);
133133

134134
// update localStorage info
135135
promise.then(function(data) { that.setCurrentUser(data); });

0 commit comments

Comments
 (0)