Skip to content

Commit ae7d9da

Browse files
committed
Fix: updateUser not working due to userId not snakecase
1 parent acae339 commit ae7d9da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/Models/UserModel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ UserModel = function (obj) {
2424
this.userAgentString = null;
2525
this.metadata = null;
2626
// Append to variable dictionary
27+
this._variableDict['userId'] = 'user_id';
2728
} else {
2829
this.userId = obj.userId;
2930
this.modifiedTime = new Date(obj.modifiedTime);
3031
this.ipAddress = obj.ipAddress;
3132
this.sessionToken = obj.sessionToken;
3233
this.userAgentString = obj.userAgentString;
3334
this.metadata = obj.metadata;
35+
this._variableDict['userId'] = 'user_id';
3436
}
3537
};
3638

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moesifapi",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Collection/Data Ingestion API for Moesif",
55
"main": "./lib/index.js",
66
"keywords": [

0 commit comments

Comments
 (0)