feat: ding push add pushed judge

This commit is contained in:
fan-tastic-z
2025-09-01 15:57:19 +08:00
parent 1f54af66ca
commit 521bfdd23d

View File

@@ -54,7 +54,9 @@ impl Worker {
&& config.status
{
let vuln = VulnInformationDao::fetch_by_id(&mut tx, id).await?;
if let Some(v) = vuln {
if let Some(v) = vuln
&& !v.pushed
{
let ding = DingBot::try_new(config.access_token, config.secret_token)?;
let title = v.title.clone();
let msg = match reader_vulninfo(v) {