let mut query = mod_add_community::table
.inner_join(user_::table.on(mod_add_community::mod_user_id.eq(user_::id)))
.inner_join(community::table)
- .inner_join(user_alias_1::table.on(mod_add_community::other_user_id.eq(user_::id)))
+ .inner_join(user_alias_1::table.on(mod_add_community::other_user_id.eq(user_alias_1::id)))
.select((
mod_add_community::all_columns,
User_::safe_columns_tuple(),
) -> Result<Vec<Self>, Error> {
let mut query = mod_add::table
.inner_join(user_::table.on(mod_add::mod_user_id.eq(user_::id)))
- .inner_join(user_alias_1::table.on(mod_add::other_user_id.eq(user_::id)))
+ .inner_join(user_alias_1::table.on(mod_add::other_user_id.eq(user_alias_1::id)))
.select((
mod_add::all_columns,
User_::safe_columns_tuple(),
let mut query = mod_ban_from_community::table
.inner_join(user_::table.on(mod_ban_from_community::mod_user_id.eq(user_::id)))
.inner_join(community::table)
- .inner_join(user_alias_1::table.on(mod_ban_from_community::other_user_id.eq(user_::id)))
+ .inner_join(
+ user_alias_1::table.on(mod_ban_from_community::other_user_id.eq(user_alias_1::id)),
+ )
.select((
mod_ban_from_community::all_columns,
User_::safe_columns_tuple(),
) -> Result<Vec<Self>, Error> {
let mut query = mod_ban::table
.inner_join(user_::table.on(mod_ban::mod_user_id.eq(user_::id)))
- .inner_join(user_alias_1::table.on(mod_ban::other_user_id.eq(user_::id)))
+ .inner_join(user_alias_1::table.on(mod_ban::other_user_id.eq(user_alias_1::id)))
.select((
mod_ban::all_columns,
User_::safe_columns_tuple(),