add ranking_rules marker before sort_position

This commit is contained in:
Guillaume Mourier 2021-10-28 13:25:26 +02:00 committed by marin postma
parent efd0ea9e1e
commit 68fe93b7db
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9

View File

@ -192,7 +192,9 @@ make_setting_route!(
analytics.publish(
"RankingRules Updated".to_string(),
json!({
"sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
"ranking_rules": {
"sort_position": setting.as_ref().map(|sort| sort.iter().position(|s| s == "sort")),
}
}),
Some(req),
);