1
0

fix: 修复消息太多无法推送

This commit is contained in:
2024-11-05 17:56:39 +08:00
parent 697460ed98
commit 4aa98688e4

View File

@@ -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)