feat(root):add mysql
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@ from core.service.mongo_db import use_collection
|
||||
|
||||
|
||||
def get_auth_db():
|
||||
return conf.server.is_prod and conf.database.get('mongo').production.db or conf.database.get(
|
||||
'mongo').dev.db
|
||||
return conf.server.is_prod and conf.database.get('mongo_auth').production.db or conf.database.get(
|
||||
'mongo_auth').dev.db
|
||||
|
||||
|
||||
def use_auth_collection(collection: str) -> Collection:
|
||||
|
||||
Reference in New Issue
Block a user