remove users from trip after they have read the notificatoin

This commit is contained in:
2024-05-21 19:41:00 +02:00
parent 1285c3bc28
commit b4967b54e9
12 changed files with 62 additions and 20 deletions

View File

@ -76,7 +76,7 @@ async fn send_group(
};
for user in User::all_with_role(db, &role).await {
Notification::create(db, &user, &d.message, &d.category, None).await;
Notification::create(db, &user, &d.message, &d.category, None, None).await;
}
Log::create(db, "Notification successfully sent".into()).await;
Flash::success(