craete log if user creates a new event
This commit is contained in:
@ -26,7 +26,7 @@ struct AddEventForm<'r> {
|
||||
async fn create(
|
||||
db: &State<SqlitePool>,
|
||||
data: Form<AddEventForm<'_>>,
|
||||
_admin: EventUser,
|
||||
user: EventUser,
|
||||
) -> Flash<Redirect> {
|
||||
let data = data.into_inner();
|
||||
|
||||
@ -37,6 +37,7 @@ async fn create(
|
||||
|
||||
Event::create(
|
||||
db,
|
||||
&user,
|
||||
data.name,
|
||||
data.planned_amount_cox,
|
||||
data.always_show,
|
||||
|
Reference in New Issue
Block a user