CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

Fix handling of check_response #233

Closed wkdewey closed 2 years ago

wkdewey commented 2 years ago

This reverts commit e6be8829116bf9436f7a0ad101dc6da3b858ed9d. Reverts #229 and fixes #232, since the original error-checking code works under most circumstances.

wkdewey commented 2 years ago

Added some new code to make surecheck_response is called at the appropriate time when dealing with individual items, in which case @res is a hash instead of APIBridge