clean w/ clippy
All checks were successful
CI/CD Pipeline / test (push) Successful in 12m52s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2024-04-15 23:26:52 +02:00
parent 151e1b7864
commit 2694829b6e
7 changed files with 13 additions and 16 deletions

View File

@ -26,7 +26,7 @@ async fn index(
}
context.insert(
"loggedin_user",
&UserWithRoles::from_user(user.user.into(), db).await,
&UserWithRoles::from_user(user.user, db).await,
);
context.insert("roles", &Role::all(db).await);
@ -57,7 +57,7 @@ async fn send(
return Flash::error(Redirect::to("/admin/notification"), "Rolle gibt's ned");
};
for user in User::all_with_role(&db, &role).await {
for user in User::all_with_role(db, &role).await {
Notification::create(db, &user, &d.message, &d.category, None).await;
}
Log::create(db, "Notification successfully sent".into()).await;