Skip to content

Commit 4a8b467

Browse files
author
Vikas Agarwal
committed
Fixed issue in sending email notifications. Redundancy is the cause. Need to get rid of this.
1 parent 3d2aa96 commit 4a8b467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getUsersById = (ids) => {
4242
* @return {Promise} promise resolved to topic details
4343
*/
4444
const getTopic = (topicId, logger) => request
45-
.get(`${config.MESSAGE_API_BASE_URL}/topics/${topicId}`)
45+
.get(`${config.MESSAGE_API_BASE_URL}/topics/${topicId}/read`)
4646
.set('accept', 'application/json')
4747
.set('authorization', `Bearer ${config.TC_ADMIN_TOKEN}`)
4848
.then((res) => {
@@ -53,7 +53,7 @@ const getTopic = (topicId, logger) => request
5353
return _.get(res, 'body.result.content');
5454
}).catch((err) => {
5555
if (logger) {
56-
logger.error(err, `Error while calling ${config.MESSAGE_API_BASE_URL}/topics/${topicId}`);
56+
logger.error(err, `Error while calling ${config.MESSAGE_API_BASE_URL}/topics/${topicId}/read`);
5757
}
5858
const errorDetails = _.get(err, 'response.body.result.content.message');
5959
throw new Error(

0 commit comments

Comments
 (0)