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
1 changed files with 1 additions and 1 deletions

View File

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