Skip to content

Commit

Permalink
feat: passing update payload in user identity update
Browse files Browse the repository at this point in the history
  • Loading branch information
sw1tchdev committed Apr 27, 2022
1 parent 2e9971c commit ca2522f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
4 changes: 2 additions & 2 deletions lib/client/useridentities.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ UserIdentities.prototype.create = function (userID, userIDentity, cb) {

// ====================================== Updating UserIdentities

UserIdentities.prototype.update = function (userID, userIDentityID, cb) {
return this.request('PUT', ['users', userID, 'identities', userIDentityID], {"identity": {"verified": true}}, cb);
UserIdentities.prototype.update = function (userID, userIDentityID, identity, cb) {
return this.request('PUT', ['users', userID, 'identities', userIDentityID], identity, cb);
};

UserIdentities.prototype.makePrimary = function (userID, userIDentityID, cb) {
Expand Down
30 changes: 9 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
],
"dependencies": {
"async": "3.2.x",
"nconf": "0.11.3",
"nconf": "0.12.0",
"querystring": "0.2.x",
"request": "2.88.2"
},
Expand Down

0 comments on commit ca2522f

Please sign in to comment.