Skip to content

Commit

Permalink
Merge "[FABN-1123] Fix identity update maxEnrollments"
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisob authored and Gerrit Code Review committed Mar 18, 2019
2 parents ebde2da + 0a85a54 commit 81d32ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fabric-ca-client/lib/IdentityService.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class IdentityService {
request.affiliation = req.affiliation;
}
if (Number.isInteger(req.maxEnrollments)) {
request.maxEnrollments = req.maxEnrollments;
request.max_enrollments = req.maxEnrollments;
}
if (req.attrs) {
request.attrs = req.attrs;
Expand Down
2 changes: 1 addition & 1 deletion fabric-ca-client/test/IdentityService.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ describe('IdentityService', () => {
callArgs[1].should.deep.equal({
type: 'testType',
affiliation: 'testAffiliation',
maxEnrollments: 42,
max_enrollments: 42,
attrs: 'testAtts',
secret: 'shhh!',
caname: 'caName'
Expand Down

0 comments on commit 81d32ad

Please sign in to comment.