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) => {
4242 * @return {Promise } promise resolved to topic details
4343 */
4444const 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 (
You can’t perform that action at this time.
0 commit comments