Skip to content

Commit fe2e3c6

Browse files
committed
Fixing breaking issues
1 parent ef4466c commit fe2e3c6

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const helmet = require('helmet'); // https://expressjs.com/en/advanced/best-prac
1919
const moment = require('moment');
2020
const csrf = require('csurf'); // https://www.npmjs.com/package/csurf
2121

22-
const eg001 = require('./eg001EmbeddedSigning');
22+
const eg001 = require('./lib/eSignature/controllers/eg001EmbeddedSigning');
2323

2424
const {
2525
eg002, eg003, eg004, eg005, eg006, eg007, eg008,

lib/admin/examples/createUser.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const createUser = async(args) => {
2121
apiClient.addDefaultHeader("Authorization", "Bearer " + args.accessToken);
2222
// Step 2 end
2323

24-
// Step 5 start
24+
// Step 3 start
2525
const userData = {
2626
user_name: args.user_name,
2727
first_name: args.first_name,
@@ -42,29 +42,25 @@ const createUser = async(args) => {
4242
}
4343
]
4444
};
45-
// Step 5 end
45+
// Step 3 end
4646

47-
// Step 6 start
47+
// Step 4 start
4848
const usersApi = new docusignAdmin.UsersApi(apiClient);
4949
return usersApi.createUser(userData, args.organizationId);
50-
// Step 6 end
50+
// Step 4 end
5151
}
5252

5353
const getPermissionProfilesAndGroups = async(args) => {
5454
const apiClient = new docusignESign.ApiClient();
5555
apiClient.setBasePath(args.basePath);
5656
apiClient.addDefaultHeader("Authorization", "Bearer " + args.accessToken);
5757

58-
// Step 3 start
5958
const accountsApi = new docusignESign.AccountsApi(apiClient);
6059
const profiles = await accountsApi.listPermissions(args.accountId);
61-
// Step 3 end
6260

63-
// Step 4 start
6461
const groupsApi = new docusignESign.GroupsApi(apiClient);
6562
const groups = await groupsApi.listGroups(args.accountId);
66-
// Step 4 end
67-
63+
6864
return { profiles, groups };
6965
}
7066

lib/eSignature/controllers/eg001EmbeddedSigning.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
*/
66

77
const path = require('path');
8-
const { sendEnvelopeForEmbeddedSigning } = require('./lib/eSignature/examples/embeddedSigning');
8+
const { sendEnvelopeForEmbeddedSigning } = require('../../../embeddedSigning');
99
const validator = require('validator');
10-
const dsConfig = require('./config/index.js').config;
10+
const dsConfig = require('../../../config/index.js').config;
1111

1212
const eg001EmbeddedSigning = exports;
1313
const eg = 'eg001'; // This example reference.
1414
const mustAuthenticate = '/ds/mustAuthenticate';
1515
const minimumBufferMin = 3;
1616
const signerClientId = 1000; // The id of the signer within this application.
17-
const demoDocsPath = path.resolve(__dirname, 'demo_documents');
17+
const demoDocsPath = path.resolve(__dirname, '../../../demo_documents');
1818
const pdf1File = 'World_Wide_Corp_lorem.pdf';
1919
const dsReturnUrl = dsConfig.appUrl + '/ds-return';
2020
const dsPingUrl = dsConfig.appUrl + '/'; // Url that will be pinged by the DocuSign signing via Ajax

0 commit comments

Comments
 (0)