File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ export function initialize(
7070 let authInterceptor : number | null = generateJWT
7171 ? null
7272 : baseAxiosRequest . interceptors . request . use ( ( config ) => {
73- config . headers . set ( 'Api-Key' , authToken ) ;
73+ config . headers . set ( 'Api-Key' , authToken ) ;
7474
75- return config ;
76- } ) ;
75+ return config ;
76+ } ) ;
7777 let userInterceptor : number | null = null ;
7878 let responseInterceptor : number | null = null ;
7979 /*
@@ -308,7 +308,7 @@ export function initialize(
308308 /*
309309 endpoints that use _userId_ query param in GET requests
310310 */
311- if ( ! ! ( config ?. url || '' ) . match ( / g e t M e s s a g e s / gim) ) {
311+ if ( ! ! ( config ?. url || '' ) . match ( / ( g e t M e s s a g e s ) | ( m e s s a g e s ) / gim) ) {
312312 return {
313313 ...config ,
314314 params : {
@@ -701,7 +701,7 @@ export function initialize(
701701 /*
702702 endpoints that use _userId_ query param in GET requests
703703 */
704- if ( ! ! ( config ?. url || '' ) . match ( / g e t M e s s a g e s / gim) ) {
704+ if ( ! ! ( config ?. url || '' ) . match ( / ( g e t M e s s a g e s ) | ( m e s s a g e s ) / gim) ) {
705705 return {
706706 ...config ,
707707 params : {
You can’t perform that action at this time.
0 commit comments