🔧 chore(utils.py): remove redundant setup_superuser() call in initialize_session_manager() function

🔧 chore(utils.py): move setup_superuser() call to initialize_services() function for better organization and readability
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-20 14:56:09 -03:00
commit aa4eca7ef1

View file

@ -111,8 +111,6 @@ def initialize_session_manager():
dependencies=[ServiceType.CACHE_MANAGER],
)
setup_superuser()
def initialize_services():
"""
@ -139,3 +137,5 @@ def initialize_services():
service_manager.get(ServiceType.CACHE_MANAGER)
# Test database connection
service_manager.get(ServiceType.DATABASE_MANAGER)
# Setup the superuser
setup_superuser()