-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(auth): remove database trigger and update user creation
Removed the database trigger for setting `canImpersonate` for the first user and implemented the logic directly in the `sign-in-up.service`. This simplifies the code by handling the first user creation within the application layer, ensuring better maintainability.
- Loading branch information
Showing
2 changed files
with
18 additions
and
56 deletions.
There are no files selected for viewing
44 changes: 0 additions & 44 deletions
44
...re/migrations/common/1734950137596-add-trigger-to-update-can-impersonate-on-first-user.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters