Skip to content

Commit

Permalink
fix: render vuln info no github_search data
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-tastic-z committed Jun 7, 2024
1 parent e6e9b32 commit 14228c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl WatchVulnApp {
}

async fn push(&self, vulns: Vec<Model>) {
for vuln in vulns.into_iter() {
for mut vuln in vulns.into_iter() {
if vuln.is_valuable {
if vuln.pushed {
info!("{} has been pushed, skipped", vuln.key);
Expand All @@ -141,12 +141,13 @@ impl WatchVulnApp {
if let Err(err) = vuln_informations::Model::update_github_search_by_key(
&self.app_context.db,
&key,
links,
links.clone(),
)
.await
{
warn!("update vuln {} github_search error: {}", &vuln.cve, err);
}
vuln.github_search = Some(links);
}
}
let msg = match reader_vulninfo(vuln.into()) {
Expand Down

0 comments on commit 14228c3

Please sign in to comment.