remove donau linz stuff

This commit is contained in:
2024-12-11 21:49:54 +01:00
parent 2ec6e61578
commit 7a945c11e3
5 changed files with 20 additions and 57 deletions

View File

@@ -89,6 +89,20 @@ impl Notification {
tx.commit().await.unwrap();
}
pub async fn create_for_all(
db: &SqlitePool,
message: &str,
category: &str,
link: Option<&str>,
action_after_reading: Option<&str>,
) {
let users = User::all(db).await;
for user in users {
Self::create(db, &user, message, category, link, action_after_reading).await;
}
}
pub async fn create_for_steering_people_tx(
db: &mut Transaction<'_, Sqlite>,
message: &str,