fix(core): 修正因异步改造遗漏的 await 调用
在最近的数据库异步化重构后,部分函数的调用处忘记添加 `await` 关键字,导致协程未被正确执行。 本次提交修复了以下模块中的问题: - `ExpressionLearner` - `ChatMessageBuilder` - `EmojiAction
This commit is contained in:
@@ -167,7 +167,7 @@ class ExpressionLearner:
|
||||
Returns:
|
||||
bool: 是否成功触发学习
|
||||
"""
|
||||
if not self.should_trigger_learning():
|
||||
if not await self.should_trigger_learning():
|
||||
return False
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user