chore(deps): upgrade packages
This commit is contained in:
@@ -38,7 +38,7 @@ from sqlmodel.ext.asyncio.session import AsyncSession
|
||||
)
|
||||
async def get_all_rooms(
|
||||
db: Database,
|
||||
mode: Literal["open", "ended", "participated", "owned", None] = Query(
|
||||
mode: Literal["open", "ended", "participated", "owned"] | None = Query(
|
||||
default="open",
|
||||
description=("房间模式:open 当前开放 / ended 已经结束 / participated 参与过 / owned 自己创建的房间"),
|
||||
),
|
||||
|
||||
@@ -142,7 +142,7 @@ class EmailQueue:
|
||||
continue
|
||||
|
||||
# 解包返回结果(列表名和值)
|
||||
queue_name, email_id = result
|
||||
_, email_id = result
|
||||
if isinstance(email_id, bytes):
|
||||
email_id = email_id.decode("utf-8")
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ This email was sent automatically, please do not reply.
|
||||
|
||||
# 创建验证记录
|
||||
(
|
||||
verification,
|
||||
_,
|
||||
code,
|
||||
) = await EmailVerificationService.create_verification_record(
|
||||
db, redis, user_id, email, ip_address, user_agent
|
||||
|
||||
Reference in New Issue
Block a user