keyshade
keyshade copied to clipboard
API: Skip workspace creation if the user is an admin user
Description
Any user that gets created, gets a default workspace associated with them. We don't want admin accounts to get a default workspace.
Solution
- Add a
if
check in the create-user.ts file to skip creation of a workspace if the user is an admin user. - Add relevant tests to
user.e2e.spec.ts
to check this case.