Skip to content

Commit

Permalink
fix: add client type when calling create metadata client
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Jun 18, 2024
1 parent 88eda1e commit a248471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class StorageControlClient {
this.cacheServiceErrorMapper = new CacheServiceErrorMapper(false);
const headers = [
new Header('Authorization', props.credentialProvider.getAuthToken()),
new Header('Agent', `nodejs:${version}`),
new Header('Agent', `nodejs:cache:${version}`),
];
this.interceptors = [
new HeaderInterceptorProvider(headers).createHeadersInterceptor(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class StorageControlClient<

this.clientMetadataProvider = new ClientMetadataProvider({
authToken: props.credentialProvider.getAuthToken(),
clientType: 'store',
});
this.clientWrapper = new control.ScsControlClient(
// Note: all web SDK requests are routed to a `web.` subdomain to allow us flexibility on the server
Expand Down

0 comments on commit a248471

Please sign in to comment.