mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -8,8 +8,8 @@ from core.mongo import mongo_manager
|
|||||||
class BaseRepository(abc.ABC):
|
class BaseRepository(abc.ABC):
|
||||||
COLLECTION_NAME: str
|
COLLECTION_NAME: str
|
||||||
|
|
||||||
@asynccontextmanager
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@asynccontextmanager
|
||||||
async def connect(cls):
|
async def connect(cls):
|
||||||
async with mongo_manager.connect() as client:
|
async with mongo_manager.connect() as client:
|
||||||
db = client.get_default_database()
|
db = client.get_default_database()
|
||||||
|
|||||||
Reference in New Issue
Block a user