From 11398d4fd499e5fad41b9d02d2bc959c6215f9bf Mon Sep 17 00:00:00 2001 From: Michael Born Date: Thu, 8 Jun 2023 17:23:04 -0400 Subject: [PATCH 1/3] Update changelog for 3.2.0 --- box.json | 2 +- changelog.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/box.json b/box.json index 0140abf..e46e085 100644 --- a/box.json +++ b/box.json @@ -2,7 +2,7 @@ "name":"Elasticsearch for the Coldbox Framework", "author":"Ortus Solutions Date: Fri, 16 Jun 2023 23:47:34 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Correct=20wrong=20typ?= =?UTF-8?q?e=20error=20when=20deleteByID()=20tries=20to=20delete=20error?= =?UTF-8?q?=20handling=20to=20onResponseFailure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Invalid call of the function [onResponseFailure], first Argument [response] is of invalid type, Cannot cast Object type [Struct] to a value of type [Hyper.models.HyperResponse] --- models/io/HyperClient.cfc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/io/HyperClient.cfc b/models/io/HyperClient.cfc index b9f3e5b..dc9e1d2 100644 --- a/models/io/HyperClient.cfc +++ b/models/io/HyperClient.cfc @@ -1031,10 +1031,11 @@ component accessors="true" threadSafe singleton { deleteRequest.setQueryParam( param.name, param.value ); } ); - var deleteResult = deleteRequest.send().json(); + var response = deleteRequest.send(); + var deleteResult = response.json(); if ( arguments.throwOnError && structKeyExists( deleteResult, "error" ) ) { - onResponseFailure( deleteResult ); + onResponseFailure( response ); } return deleteResult.keyExists( "error" ) ? false : deleteResult.result == "deleted"; From af3931e9ea026ea186bac332328ae5ccbf7bfb95 Mon Sep 17 00:00:00 2001 From: Michael Born Date: Mon, 19 Jun 2023 22:00:26 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=96=20DOC:=20Add=20changelog=20for?= =?UTF-8?q?=203.2.1=20patch=20release=20for=20this=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index 4e3c3cc..7b79f14 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ---- ## [Unreleased] +## [3.2.1] - 06-20-2023 +### Fixed +* Corrected a typing error when performing error handling in `deleteById()` + ## [3.2.0] - 06-08-2023 ### Added * [Added `getTermVectors` to SearchBuilder and Client](https://cbelasticsearch.ortusbooks.com/searching/search#term-vectors) to allow for fetching term vectors on document field(s)