remove users from trip after they have read the notificatoin #518
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user