artsy / positron

Positron is Artsy Writer or the editorial tool and API for Artsy.
MIT License
85 stars 42 forks source link

fix use ObjectId class in users save method #3137

Closed mc-jones closed 5 months ago

mc-jones commented 5 months ago

This PR patches #3135 to use the ObjectId class when looking for the updated document in the users' save function. previously it was returning null causing the page to throw Error: Could not find a user from that access token.

codecov[bot] commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (48f539b) 83.5% compared to head (b47b08c) 83.5%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3137 +/- ## ===================================== Coverage 83.5% 83.5% ===================================== Files 197 197 Lines 5388 5388 Branches 978 978 ===================================== Hits 4500 4500 Misses 635 635 Partials 253 253 ```