Skip to content

Commit 5ae25c7

Browse files
m2m - fixing service client cache issue.
1 parent 0685320 commit 5ae25c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/services/busApi.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ const tcCoreLibAuth = require('tc-core-library-js').auth;
66

77
const m2m = tcCoreLibAuth.m2m(config);
88

9-
let client = null;
10-
119
/**
1210
* Get Http client to bus api
1311
* @return {Object} Http Client to bus api
1412
*/
1513
async function getClient() {
16-
if (client) return client;
14+
let client = null;
1715
const apiBusUrl = config.get('busApiUrl');
1816
try {
1917
const token = await m2m.getMachineToken(config.AUTH0_CLIENT_ID, config.AUTH0_CLIENT_SECRET);

0 commit comments

Comments
 (0)