hashmapinc / Drillflow

A dockerized WITSML API Server that is agnostic of the backend.
Apache License 2.0
17 stars 13 forks source link

Fix update logic for wellbore #211

Closed cherrera2001 closed 5 years ago

cherrera2001 commented 5 years ago

Currently create / read / delete works against DOT for wellbore but update fails with resource not found...

randypitcherii commented 5 years ago

I implemented this in a one line HOTFIX.

The issue is that drilltest did not require the wellUid querystring param when updating a wellbore object, but DoT does require it.

I did a simple if check on the type and added the querystring param for wellbore types before executing the REST call. Things work as they should now.