Skip to content

Commit 64c04eb

Browse files
Fixed PR comments
1 parent b77bc00 commit 64c04eb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/entity.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,13 @@ export const upload = async ({ http, urlPath, stackHeaders, formData, params, me
8585
}
8686
}
8787

88-
// eslint-disable-next-line camelcase
89-
export const create = ({ http, params = {}, create_with_preview_token = false }) => {
88+
export const create = ({ http, params = {}, createWithPreviewToken = false }) => {
9089
return async function (data, param) {
9190
this.stackHeaders = {
9291
...this.stackHeaders
9392
}
9493
const queryParams = {
95-
// eslint-disable-next-line camelcase
96-
...(create_with_preview_token ? { create_with_preview_token: true } : {}),
94+
...(createWithPreviewToken ? { create_with_preview_token: true } : {}),
9795
...cloneDeep(param) // user param can override default
9896
}
9997
const headers = {

lib/stack/deliveryToken/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function DeliveryToken (http, data = {}) {
8484
* client.stack().deliveryToken().create({ token })
8585
* .then((deliveryToken) => console.log(deliveryToken))
8686
*/
87-
this.create = create({ http: http, create_with_preview_token: true })
87+
this.create = create({ http: http, createWithPreviewToken: true })
8888

8989
/**
9090
* @description The ‘Get all deliveryToken’ request returns comprehensive information about all deliveryToken created in a stack.

0 commit comments

Comments
 (0)