zeeguu / web

Frontend for the zeeguu web application.
https://www.zeeguu.org
3 stars 5 forks source link

Fix to concurrency update when changing to new language. #406

Closed tfnribeiro closed 1 week ago

tfnribeiro commented 2 weeks ago

Whenever a user would update the language they were learning it could cause a concurrency issue in the backend if they had not selected the language before.

To fix this, I have made changes on how the Save is handled both in the Web and API to simply do it in one endpoint call, rather than multiple endpoint calls.

The user preferences are handled separately, as these are not needed for the user details update.

Implementation:

Depends on:

https://github.com/zeeguu/api/pull/165

netlify[bot] commented 2 weeks ago

Deploy Preview for voluble-nougat-015dd1 ready!

Name Link
Latest commit f243128b82d4df9a9f99ee787ea5e4338db21704
Latest deploy log https://app.netlify.com/sites/voluble-nougat-015dd1/deploys/6674260b34a32c00085f1422
Deploy Preview https://deploy-preview-406--voluble-nougat-015dd1.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.