We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa5616 commit 76bcf6fCopy full SHA for 76bcf6f
2 files changed
package.json
@@ -2,7 +2,7 @@
2
"name": "hook-javascript",
3
"title": "hook javascript client",
4
"description": "hook javascript client",
5
- "version": "0.3.1",
+ "version": "0.3.2",
6
"homepage": "http://github.com/doubleleft/hook-javascript",
7
"main": "dist/hook.js",
8
"authors": [{
src/auth.js
@@ -129,7 +129,7 @@ Hook.Auth.prototype.update = function(data) {
129
}
130
131
var that = this;
132
- var promise = this.client.collection('auth').update(this.currentUser._id, data);
+ var promise = this.client.post('auth/update', data);
133
134
// update localStorage info
135
promise.then(function(data) { that.setCurrentUser(data); });
0 commit comments