We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb1d48f commit 9a8bdcfCopy full SHA for 9a8bdcf
1 file changed
lib/stack/globalField/index.js
@@ -230,7 +230,7 @@ export function GlobalField (http, data = {}) {
230
* client.stack().globalField().create({ global_field })
231
* .then((globalField) => console.log(globalField))
232
*/
233
- this.create = async (data) => {
+ this.create = async (payload) => {
234
try {
235
if (this.apiVersion) {
236
this.stackHeaders.api_version = this.apiVersion
@@ -240,7 +240,7 @@ export function GlobalField (http, data = {}) {
240
...cloneDeep(this.stackHeaders)
241
}
242
243
- const response = await http.post(`${this.urlPath}`, data, headers)
+ const response = await http.post(`${this.urlPath}`, payload, headers)
244
const data = response.data
245
if (data) {
246
if (this.stackHeaders) {
0 commit comments