Skip to content

Commit 5bccdaa

Browse files
committed
Remove storeRow from Preference sruct
1 parent 01634a0 commit 5bccdaa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/repository/src/db_diesel/preference.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use super::{
1414
#[derive(PartialEq, Debug, Clone, Default)]
1515
pub struct Preference {
1616
pub preference_row: PreferenceRow,
17-
pub store_row: StoreRow,
1817
}
1918

2019
#[derive(Clone, Default)]
@@ -77,10 +76,7 @@ impl<'a> PreferenceRepository<'a> {
7776
let result = final_query
7877
.load::<PreferenceJoin>(self.connection.lock().connection())?
7978
.into_iter()
80-
.map(|(preference_row, store_row)| Preference {
81-
preference_row,
82-
store_row,
83-
})
79+
.map(|(preference_row, _store_row)| Preference { preference_row })
8480
.collect();
8581

8682
Ok(result)

0 commit comments

Comments
 (0)