alexandria-reader / backend

Alexandria reading app back end
https://tryalexandria.com/
6 stars 1 forks source link

service addNewUserWord adds word, translation and connections #87

Closed mrchrmn closed 2 years ago

mrchrmn commented 2 years ago

Description

The POST api/words/route now calls the new addNewUserWord service that takes a userword from the client and the user object res.locals and does these things:

I also had to make changes to translation services and data-access functions to make it work.

Related Issue

Closes #79 Closes #76

Type of Changes

Type
:bug: Bug fix
:heavy_check_mark: :sparkles: New feature
:heavy_check_mark: :hammer: Refactoring
:100: Add tests
:link: Update dependencies
:scroll: Docs

Testing Steps / QA Criteria

Please test it and tell me this works ;)