Refactor notification handling in Workers: Centralize notification insertion and frontend updates by replacing direct SQL queries with dedicated functions. This improves code maintainability and reduces redundancy across character creation, events, and transport processing.

This commit is contained in:
Torsten Schulz (local)
2025-12-22 13:58:17 +01:00
parent a82d554494
commit fce7400303
7 changed files with 183 additions and 47 deletions

View File

@@ -12,6 +12,7 @@ mod transport;
mod weather;
mod events;
mod sql;
mod notify;
pub use base::Worker;
pub use crate::db::ConnectionPool;
@@ -27,4 +28,5 @@ pub use user_character::UserCharacterWorker;
pub use transport::TransportWorker;
pub use weather::WeatherWorker;
pub use events::EventsWorker;
pub use notify::{insert_notification, insert_notification_conn, publish_update_status};