From ae9f3648a11269143341f6d9e403cfaf453045da Mon Sep 17 00:00:00 2001 From: fan-tastic-z Date: Mon, 3 Jun 2024 17:59:20 +0800 Subject: [PATCH] fix: models no set is_valuable --- src/models/vuln_informations.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models/vuln_informations.rs b/src/models/vuln_informations.rs index e395ba6..21648be 100644 --- a/src/models/vuln_informations.rs +++ b/src/models/vuln_informations.rs @@ -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); @@ -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) @@ -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)