remove users from trip after they have read the notificatoin #518

Merged
philipp merged 2 commits from remove-users-from-canceled-trips-after-reading-notification into main 2024-05-21 20:01:26 +02:00
Showing only changes of commit 1069e29cf0 - Show all commits

View File

@ -102,7 +102,7 @@ async fn send_user(
return Flash::error(Redirect::to("/admin/notification"), "User gibt's ned");
};
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(