Skip to content

Commit 93bf222

Browse files
author
Parth Shah
committed
fixing config
1 parent 734e3f3 commit 93bf222

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

config/custom-environment-variables.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"directProjectServiceEndpoint": "DIRECT_PROJECT_SERVICE_ENDPOINT",
1111
"fileServiceEndpoint": "FILE_SERVICE_ENDPOINT",
1212
"identityServiceEndpoint": "IDENTITY_SERVICE_ENDPOINT",
13+
"topicServiceEndpoint": "TOPIC_SERVICE_ENDPOINT",
1314
"systemUserClientId": "SYSTEM_USER_CLIENT_ID",
1415
"systemUserClientSecret": "SYSTEM_USER_CLIENT_SECRET",
1516
"dbConfig": {

src/events/projects/create.event.js

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ const addProjectStatus = (req, logger, project) => {
6666
]
6767
let postPromises = []
6868
_.forEach(topics, t => {
69-
console.log(t)
7069
postPromises.push(topicService.createTopic(req, project.id, t.title, t.body))
7170
})
7271

src/services/topicService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function _getHttpClient(req){
1717
httpClient.defaults.headers.common['Authorization'] = req.headers.authorization
1818
httpClient.defaults.baseURL = config.get('topicServiceEndpoint')
1919
httpClient.defaults.timeout = 3000
20-
httpClient.interceptors.response.use((resp) => {
20+
httpClient.interceptors.response.use(resp => {
2121
// req.log.debug('resp: ', JSON.stringify(resp.data, null, 2))
2222
if (resp.status !== 200 || resp.data.result.status !== 200) {
2323
req.log.error('error resp: ', JSON.stringify(resp.data, null, 2))

0 commit comments

Comments
 (0)