Format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use actix_session::Session;
|
||||
use actix_web::{web, HttpResponse};
|
||||
use actix_web::{HttpResponse, web};
|
||||
use serde::Deserialize;
|
||||
|
||||
use shanty_db::entities::user::UserRole;
|
||||
@@ -76,7 +76,11 @@ async fn setup(
|
||||
// Adopt any orphaned wanted items from before auth was added
|
||||
let adopted = queries::users::adopt_orphaned_wanted_items(state.db.conn(), user.id).await?;
|
||||
if adopted > 0 {
|
||||
tracing::info!(count = adopted, user_id = user.id, "adopted orphaned wanted items");
|
||||
tracing::info!(
|
||||
count = adopted,
|
||||
user_id = user.id,
|
||||
"adopted orphaned wanted items"
|
||||
);
|
||||
}
|
||||
|
||||
auth::set_session(&session, user.id, &user.username, "admin");
|
||||
|
||||
Reference in New Issue
Block a user