fix: 有一个 sio.emit 没 awit

This commit is contained in:
shenjack 2024-01-25 22:12:00 +08:00
parent 184b9c92ef
commit 386ee4413a
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -210,7 +210,7 @@ async def add_message(data: Dict[str, Any]):
"https://bd.bangbang93.com/openbmclapi/metric/dashboard"
) as response:
if not response.status == "200":
sio.emit(
await sio.emit(
"sendMessage",
reply_msg.to_content(
f"请求数据失败\n{response.status}"