InfluxCommunity / influxdb3-js

The JavaScript Client that provides a simple and convenient way to interact with InfluxDB 3.
https://influxcommunity.github.io/influxdb3-js/
MIT License
13 stars 4 forks source link

fix: handle 2xx response for writes #410

Closed alespour closed 2 months ago

alespour commented 2 months ago

Proposed Changes

Handles 2xx responses for writes. InfluxDB v3 may also return 201 for writes and there is an agreement that all 2xx should be considered as a success for writes in v3 clients.

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.59%. Comparing base (96adbee) to head (4594dec). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #410 +/- ## ======================================= Coverage 97.59% 97.59% ======================================= Files 23 23 Lines 915 916 +1 Branches 218 219 +1 ======================================= + Hits 893 894 +1 Misses 10 10 Partials 12 12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.