Skip to content

Commit

Permalink
CS-18599: csdx content-type:diagram cmd fix
Browse files Browse the repository at this point in the history
Added api_key to headers for getContentTypes function tp resolve below command issue
csdx content-type:diagram
csdx content-type:list
  • Loading branch information
Ashish-SA-CS authored Oct 22, 2021
1 parent 32a853f commit ea52c54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/contentstack/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ export default class ContentstackClient {
try {
const response = await this.instance.get('/content_types', {
params: {
api_key: api_key,
include_count: true,
include_global_field_schema: includeGlobalFields,
},
headers: {
api_key,
},
})

return response.data
Expand Down

0 comments on commit ea52c54

Please sign in to comment.