Skip to content

Commit

Permalink
#737: code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Feb 13, 2023
1 parent 9776c0e commit 6e87d83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/metadataTypes/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ class Query extends MetadataType {
* @returns {boolean} deletion success status
*/
static async deleteByKey(customerKey) {
// delete only works with the query's object id
const objectId = customerKey ? await this._getObjectIdForSingleRetrieve(customerKey) : null;
if (!objectId) {
Util.logger.error(` - query not found`);
Expand Down

0 comments on commit 6e87d83

Please sign in to comment.