mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
20c5578470
- Refactor user business logic from `user.service` into `user.domain` Make user business logic reusable by using `user.domain` from other services than `user.service` - Add `jest-when` lib to make testing easier and use it in `userService` Using when helps from coupling tests to order of mock implementations execution - Move all user business logic from user-repository to user.service - Fix user.service tests not awaiting promises leaking state between tests - Presentation logic for `getUserProfileImage` moved from UserService to UserController - Fix `user.e2e` test logic. Pending fixing the configuration of the test itself |
||
---|---|---|
.. | ||
apps | ||
bin | ||
libs | ||
.dockerignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc | ||
Dockerfile | ||
immich-openapi-specs.json | ||
LICENSE | ||
nest-cli.json | ||
openapitools.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
start-microservices.sh | ||
start-server.sh | ||
tsconfig.build.json | ||
tsconfig.json |
How to run migration
- Attached to the container shell
- Run
npm run typeorm -- migration:generate ./libs/database/src/<migration-name> -d libs/database/src/config/database.config.ts
- Check if the migration file makes sense
- Move the migration file to folder
server/libs/database/src/migrations
in your code editor.