Fill acitivites from various activities; Fixes #972
Some checks failed
CI/CD Pipeline / test (push) Failing after 11s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2025-05-04 18:38:14 +02:00
parent 8777ccb341
commit e853381bd7
12 changed files with 349 additions and 258 deletions

View File

@ -1,5 +1,8 @@
use super::User;
use crate::{model::mail::Mail, special_user};
use crate::{
model::{activity::ActivityBuilder, mail::Mail},
special_user,
};
use rocket::async_trait;
use sqlx::SqlitePool;
@ -35,6 +38,13 @@ ASKÖ Ruderverein Donau Linz", self.name),
smtp_pw,
).await?;
ActivityBuilder::new(&format!(
"User {self} hat die Info-Mail bzgl. neues förderndes Mitglied (Handbuch und WLAN Infos) an {mail} gesendet bekommen"
))
.relevant_for_user(&self)
.save(db)
.await;
Ok(())
}
}