Skip to content

Commit 465af93

Browse files
authored
Merge pull request #64 from barkibu/fix/pet_parent_merged_instanciation
Fix instanciation of merged pet parent
2 parents f55e372 + f1a509d commit 465af93

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.14.2]
8+
- Fix Merged Pet Parent instanciation
9+
710
## [0.14.1]
811
- Convert API exception into KB::Error for admin `merge!` endpoint
912

lib/kb/models/pet_parent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def merge!(duplicated_pet_parent_key)
3030
end
3131

3232
response = KB::ClientResolver.admin.request("petparents?#{params.to_query}", method: :put)
33-
from_api response
33+
PetParent.from_api response
3434
rescue Faraday::Error => e
3535
raise KB::Error.from_faraday(e)
3636
end

lib/kb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module KB
2-
VERSION = '0.14.1'.freeze
2+
VERSION = '0.14.2'.freeze
33
end

0 commit comments

Comments
 (0)