Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(UserManager): Update constructor for storage systems
This commit updates the `UserManager` class constructor. The previous constructor was refactored to remove the multiple if-else statements for type checking and replaced with a `switch` statement. Additionally, the new constructor adds fields for `File directory` , `Connection conn`, and `MongoDB db`, depending on the storage type. This allows for more flexibility and easier maintenance of the class. Finally, the `usersDirectory` field is now created if it does not exist. This change is a feature addition and improves the class's usability.
- Loading branch information