File tree Expand file tree Collapse file tree
src/clients/janus/LicenseManager Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { stringify } from 'qs'
2-
3- import { RequestConfig , RequestTracingConfig } from '../../../HttpClient'
1+ import { RequestTracingConfig , inflightUrlWithQuery } from '../../../HttpClient'
42import { JanusClient } from '../JanusClient'
53
64const TWO_MINUTES_S = 2 * 60
@@ -13,10 +11,6 @@ const routes = {
1311 topbarData : ( ) => `${ BASE_URL } /site/pvt/newtopbar` ,
1412}
1513
16- const inflightKey = ( { baseURL, url, params } : RequestConfig ) => {
17- return baseURL ! + url ! + stringify ( params , { arrayFormat : 'repeat' , addQueryPrefix : true } )
18- }
19-
2014export class LicenseManager extends JanusClient {
2115 public getAccountData ( VtexIdclientAutCookie : string , tracingConfig ?: RequestTracingConfig ) {
2216 const metric = 'lm-account-data'
@@ -25,7 +19,7 @@ export class LicenseManager extends JanusClient {
2519 headers : {
2620 VtexIdclientAutCookie,
2721 } ,
28- inflightKey,
22+ inflightKey : inflightUrlWithQuery ,
2923 metric,
3024 tracing : {
3125 requestSpanNameSuffix : metric ,
You can’t perform that action at this time.
0 commit comments