Skip to content

Commit

Permalink
fix: models no set is_valuable
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-tastic-z committed Jun 3, 2024
1 parent d8a7400 commit ae9f364
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/vuln_informations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl super::_entities::vuln_informations::Model {
vuln_model.tags = ActiveValue::set(Some(vuln.tags));
vuln_model.from = ActiveValue::set(vuln.from);
vuln_model.reasons = ActiveValue::set(Some(vuln.reasons));
vuln_model.is_valuable = ActiveValue::set(vuln.is_valuable);
let m = vuln_model.update(&txn).await?;
txn.commit().await?;
return Ok(m);
Expand All @@ -110,6 +111,7 @@ impl super::_entities::vuln_informations::Model {
from: ActiveValue::set(vuln.from),
pushed: ActiveValue::set(false),
reasons: ActiveValue::set(Some(vuln.reasons)),
is_valuable: ActiveValue::set(vuln.is_valuable),
..Default::default()
}
.insert(&txn)
Expand Down Expand Up @@ -158,6 +160,7 @@ impl super::_entities::vuln_informations::Model {
references: ActiveValue::set(Some(vuln.references)),
tags: ActiveValue::set(Some(vuln.tags)),
from: ActiveValue::set(vuln.from),
is_valuable: ActiveValue::set(vuln.is_valuable),
..Default::default()
}
.insert(&txn)
Expand Down

0 comments on commit ae9f364

Please sign in to comment.