File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const getUsersById = (ids) => {
42
42
* @return {Promise } promise resolved to topic details
43
43
*/
44
44
const getTopic = ( topicId , logger ) => request
45
- . get ( `${ config . MESSAGE_API_BASE_URL } /topics/${ topicId } ` )
45
+ . get ( `${ config . MESSAGE_API_BASE_URL } /topics/${ topicId } /read ` )
46
46
. set ( 'accept' , 'application/json' )
47
47
. set ( 'authorization' , `Bearer ${ config . TC_ADMIN_TOKEN } ` )
48
48
. then ( ( res ) => {
@@ -53,7 +53,7 @@ const getTopic = (topicId, logger) => request
53
53
return _ . get ( res , 'body.result.content' ) ;
54
54
} ) . catch ( ( err ) => {
55
55
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 ` ) ;
57
57
}
58
58
const errorDetails = _ . get ( err , 'response.body.result.content.message' ) ;
59
59
throw new Error (
You can’t perform that action at this time.
0 commit comments