fix: cut events traffic while we engineer a new events architecture (#559)

Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
Paul Makles
2026-02-13 19:40:51 +00:00
committed by GitHub
parent 2e87696c83
commit a11986ba1a
2 changed files with 10 additions and 32 deletions

View File

@@ -653,14 +653,14 @@ impl User {
self.apply_options(partial.clone());
db.update_user(&self.id, &partial, remove.clone()).await?;
EventV1::UserUpdate {
id: self.id.clone(),
data: partial.into(),
clear: remove.into_iter().map(|v| v.into()).collect(),
event_id: Some(Ulid::new().to_string()),
}
.p_user(self.id.clone(), db)
.await;
// EventV1::UserUpdate {
// id: self.id.clone(),
// data: partial.into(),
// clear: remove.into_iter().map(|v| v.into()).collect(),
// event_id: Some(Ulid::new().to_string()),
// }
// .p_user(self.id.clone(), db)
// .await;
Ok(())
}