Merge pull request 'allow for sending notifications to single users' (#516) from allow-notifications-for-single-user into main #517
@ -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