Skip to content

Commit ea52c54

Browse files
authored
CS-18599: csdx content-type:diagram cmd fix
Added api_key to headers for getContentTypes function tp resolve below command issue csdx content-type:diagram csdx content-type:list
1 parent 32a853f commit ea52c54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/contentstack/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ export default class ContentstackClient {
113113
try {
114114
const response = await this.instance.get('/content_types', {
115115
params: {
116-
api_key: api_key,
117116
include_count: true,
118117
include_global_field_schema: includeGlobalFields,
119118
},
119+
headers: {
120+
api_key,
121+
},
120122
})
121123

122124
return response.data

0 commit comments

Comments
 (0)