From b63446d614eca17e4c849572be66dc45b7806ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Mon, 13 Feb 2023 16:03:56 +0100 Subject: [PATCH] #735: correct camel-casing --- docs/dist/documentation.md | 6 +++--- lib/metadataTypes/MetadataType.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/dist/documentation.md b/docs/dist/documentation.md index 4f4b99b97..e52877c2c 100644 --- a/docs/dist/documentation.md +++ b/docs/dist/documentation.md @@ -3201,7 +3201,7 @@ Provides default functionality that can be overwritten by child metadata type cl * [.document([metadata], [isDeploy])](#MetadataType.document) ⇒ void * [.deleteByKey(customerKey)](#MetadataType.deleteByKey) ⇒ boolean * [.postDeleteTasks(customerKey, [additionalExtensions])](#MetadataType.postDeleteTasks) ⇒ Promise.<void> - * [.deleteByKeySOAP(customerKey, [overridekeyField], [handleOutside])](#MetadataType.deleteByKeySOAP) ⇒ boolean + * [.deleteByKeySOAP(customerKey, [overrideKeyField], [handleOutside])](#MetadataType.deleteByKeySOAP) ⇒ boolean * [.deleteByKeyREST(url, key, [handleOutside])](#MetadataType.deleteByKeyREST) ⇒ boolean * [.readBUMetadataForType(readDir, [listBadKeys], [buMetadata])](#MetadataType.readBUMetadataForType) ⇒ object * [.getFilesToCommit(keyArr)](#MetadataType.getFilesToCommit) ⇒ Promise.<Array.<string>> @@ -3863,7 +3863,7 @@ clean up after deleting a metadata item -### MetadataType.deleteByKeySOAP(customerKey, [overridekeyField], [handleOutside]) ⇒ boolean +### MetadataType.deleteByKeySOAP(customerKey, [overrideKeyField], [handleOutside]) ⇒ boolean Delete a data extension from the specified business unit **Kind**: static method of [MetadataType](#MetadataType) @@ -3872,7 +3872,7 @@ Delete a data extension from the specified business unit | Param | Type | Description | | --- | --- | --- | | customerKey | string | Identifier of metadata | -| [overridekeyField] | string | optionally change the name of the key field if the api uses a different name | +| [overrideKeyField] | string | optionally change the name of the key field if the api uses a different name | | [handleOutside] | boolean | if the API reponse is irregular this allows you to handle it outside of this generic method | diff --git a/lib/metadataTypes/MetadataType.js b/lib/metadataTypes/MetadataType.js index ebcfe4d8d..17fd2a462 100644 --- a/lib/metadataTypes/MetadataType.js +++ b/lib/metadataTypes/MetadataType.js @@ -1615,13 +1615,13 @@ class MetadataType { * Delete a data extension from the specified business unit * * @param {string} customerKey Identifier of metadata - * @param {string} [overridekeyField] optionally change the name of the key field if the api uses a different name + * @param {string} [overrideKeyField] optionally change the name of the key field if the api uses a different name * @param {boolean} [handleOutside] if the API reponse is irregular this allows you to handle it outside of this generic method * @returns {boolean} deletion success flag */ - static async deleteByKeySOAP(customerKey, overridekeyField, handleOutside) { + static async deleteByKeySOAP(customerKey, overrideKeyField, handleOutside) { const metadata = {}; - metadata[overridekeyField || this.definition.keyField] = customerKey; + metadata[overrideKeyField || this.definition.keyField] = customerKey; try { await this.client.soap.delete( this.definition.type.charAt(0).toUpperCase() + this.definition.type.slice(1),