fix(http): fix event name for typo tolerance settings update

This commit is contained in:
Guillaume Mourier 2022-04-27 14:49:21 +02:00
parent 3d10af0333
commit 3d0a4a3d18

View File

@ -171,7 +171,7 @@ make_setting_route!(
use serde_json::json;
analytics.publish(
"TypoToleranceUpdated Updated".to_string(),
"TypoTolerance Updated".to_string(),
json!({
"typo_tolerance": {
"enabled": setting.as_ref().map(|s| !matches!(s.enabled, Setting::Set(false))).unwrap_or(true),