fix: 修复消息太多无法推送
This commit is contained in:
@@ -23,7 +23,7 @@ class PushRunner : Runner {
|
||||
)
|
||||
}
|
||||
try {
|
||||
DingtalkSender().send("近期要闻", mapOf("articles" to articles))
|
||||
DingtalkSender().send("近期要闻", mapOf("articles" to articles.take(10)))
|
||||
articles.forEach { articleRepository.updatePushedById(it.id, true) }
|
||||
} catch (e: RuntimeException) {
|
||||
logger.error("发送失败", e)
|
||||
|
||||
Reference in New Issue
Block a user