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):
|
||||
COLLECTION_NAME: str
|
||||
|
||||
@asynccontextmanager
|
||||
@classmethod
|
||||
@asynccontextmanager
|
||||
async def connect(cls):
|
||||
async with mongo_manager.connect() as client:
|
||||
db = client.get_default_database()
|
||||
|
||||
Reference in New Issue
Block a user