Merge pull request 'allow for sending notifications to single users' (#516) from allow-notifications-for-single-user into main #517

Merged
philipp merged 3 commits from remove-users-from-canceled-trips-after-reading-notification into staging 2024-05-21 20:01:19 +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"); 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; Log::create(db, "Notification successfully sent".into()).await;
Flash::success( Flash::success(