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