Skip to content

Commit 8c39dd3

Browse files
committed
add bool fields
1 parent 1caa3ea commit 8c39dd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/user_info.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const fields = {
1111
timezone: 7,
1212
isPaperTradeEnabled: 21
1313
}
14+
const boolFields = ['isPaperTradeEnabled']
1415

1516
/**
1617
* User Info model
@@ -25,7 +26,7 @@ class UserInfo extends Model {
2526
* @param {number} data.isPaperTradeEnabled - flag indicating paper trading account
2627
*/
2728
constructor (data = {}) {
28-
super({ data, fields })
29+
super({ data, fields, boolFields })
2930
}
3031

3132
/**

0 commit comments

Comments
 (0)