Skip to content

Commit 0b499c9

Browse files
author
Vikas Agarwal
committed
Merge branch 'dev' into feature/dev-challenges
2 parents 4de8417 + f05fbde commit 0b499c9

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM node:8.2.1
2-
LABEL version="1.0"
2+
LABEL version="1.2"
33
LABEL description="Projects microservice"
44

55
RUN apt-get update && \

src/routes/projects/list.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,6 @@ const parseElasticSearchCriteria = (criteria, fields, order) => {
149149
},
150150
},
151151
},
152-
{
153-
nested: {
154-
path: 'details',
155-
query: {
156-
nested: {
157-
path: 'details.utm',
158-
query: {
159-
query_string: {
160-
query: `*${keyword}*`,
161-
analyze_wildcard: true,
162-
fields: ['details.utm.code'],
163-
},
164-
},
165-
},
166-
},
167-
},
168-
},
169152
],
170153
},
171154
};

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)