mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
update helper.js
isEnrolled()
This commit is contained in:
parent
ecd08c0357
commit
d6e7d3fecc
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ var getRegisteredUser = async function(username, userOrg, isJson) {
|
||||||
user = await client.setUserContext({username:username, password:secret});
|
user = await client.setUserContext({username:username, password:secret});
|
||||||
logger.debug('Successfully enrolled username %s and setUserContext on the client object', username);
|
logger.debug('Successfully enrolled username %s and setUserContext on the client object', username);
|
||||||
}
|
}
|
||||||
if(user && user.isEnrolled) {
|
if(user && user.isEnrolled()) {
|
||||||
if (isJson && isJson === true) {
|
if (isJson && isJson === true) {
|
||||||
var response = {
|
var response = {
|
||||||
success: true,
|
success: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue