Update the seed to check to update roles & users #368
Labels
bug
Something isn't working
Refactor Friday
This label is used to mark an issue for a planned refactor
Describe the bug
Users are not updated in when something changes in the seed and the application does not instantiate the database. So the seed will only execute when there are no users stored in the database. There already is some code that could help to accomplish this. It can be found in the HelperClass folder in the API layer.
Expected behavior
An possible solution could be to check if the user exists in the database. Update the user if it's any different than in the seed.
Additional context
The current logic to execute the seed in the startup
The text was updated successfully, but these errors were encountered: