fix(core): 修正因异步改造遗漏的 await 调用

在最近的数据库异步化重构后,部分函数的调用处忘记添加 `await` 关键字,导致协程未被正确执行。

本次提交修复了以下模块中的问题:
- `ExpressionLearner`
- `ChatMessageBuilder`
- `EmojiAction
This commit is contained in:
tt-P607
2025-09-20 22:04:43 +08:00
parent b42608c49a
commit ca780919a8
3 changed files with 6 additions and 6 deletions

View File

@@ -167,7 +167,7 @@ class ExpressionLearner:
Returns:
bool: 是否成功触发学习
"""
if not self.should_trigger_learning():
if not await self.should_trigger_learning():
return False
try: