Fix unique thing
This commit is contained in:
@@ -22,10 +22,6 @@ impl j_db::model::JdbModel for SocialCreditPhrase {
|
|||||||
fn tree() -> String {
|
fn tree() -> String {
|
||||||
"SocialCreditPhrase".to_string()
|
"SocialCreditPhrase".to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_unique(&self, other: &Self) -> bool {
|
|
||||||
other.phrase.to_lowercase() == self.phrase.to_lowercase()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SocialCreditPhrase {
|
impl SocialCreditPhrase {
|
||||||
|
|||||||
Reference in New Issue
Block a user