🔧 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:
parent
82469752f8
commit
aa4eca7ef1
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,6 @@ def initialize_session_manager():
|
||||||
dependencies=[ServiceType.CACHE_MANAGER],
|
dependencies=[ServiceType.CACHE_MANAGER],
|
||||||
)
|
)
|
||||||
|
|
||||||
setup_superuser()
|
|
||||||
|
|
||||||
|
|
||||||
def initialize_services():
|
def initialize_services():
|
||||||
"""
|
"""
|
||||||
|
|
@ -139,3 +137,5 @@ def initialize_services():
|
||||||
service_manager.get(ServiceType.CACHE_MANAGER)
|
service_manager.get(ServiceType.CACHE_MANAGER)
|
||||||
# Test database connection
|
# Test database connection
|
||||||
service_manager.get(ServiceType.DATABASE_MANAGER)
|
service_manager.get(ServiceType.DATABASE_MANAGER)
|
||||||
|
# Setup the superuser
|
||||||
|
setup_superuser()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue