Implement notification system for character death events: Added a new method in UserCharacterWorker to notify users of character deaths, including directors, relationships, and children. Updated SQL queries to support the insertion of notifications with event types, enhancing user engagement and real-time updates.

This commit is contained in:
Torsten Schulz (local)
2026-03-22 09:48:16 +01:00
parent 4086e9a207
commit c209c41b52
2 changed files with 58 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ impl CharacterCreationWorker {
.map_err(|e| DbError::new(format!("DB-Verbindung fehlgeschlagen: {e}")))?;
conn.prepare("insert_notification", QUERY_INSERT_NOTIFICATION)?;
conn.execute("insert_notification", &[&user_id])?;
conn.execute("insert_notification", &[&user_id, &event_type])?;
// falukantUpdateStatus
let update_message =