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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user