Use model_dump instead of json
This commit is contained in:
parent
66e39cbea9
commit
a6f99b2041
1 changed files with 2 additions and 2 deletions
|
@ -77,13 +77,13 @@ async def run() -> None:
|
|||
| Intents.GUILD_MESSAGES
|
||||
| Intents.MESSAGE_CONTENT
|
||||
)
|
||||
redis_config = config.redis.dict()
|
||||
redis_config = config.redis.model_dump()
|
||||
redis_host = redis_config.pop("host")
|
||||
|
||||
redis = await aioredis.from_url(redis_host, decode_responses=True, **redis_config)
|
||||
|
||||
await connect(
|
||||
**config.mongo.dict(),
|
||||
**config.mongo.model_dump(),
|
||||
testing=config.environment.value == "develop",
|
||||
extra_models=[StaticStat, Stat],
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue