fix: fix the issues caused by authifier migration
Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
@@ -37,7 +37,10 @@ pub async fn admin_account_delete(
|
||||
}
|
||||
}
|
||||
|
||||
db.delete_authifier_account(&target.id).await?;
|
||||
db.fetch_account(&target.id)
|
||||
.await?
|
||||
.mark_deleted(db)
|
||||
.await?;
|
||||
|
||||
create_audit_action(
|
||||
db,
|
||||
|
||||
@@ -39,7 +39,9 @@ pub async fn admin_account_disable(
|
||||
}
|
||||
}
|
||||
|
||||
db.disable_authifier_account(&target.id).await?;
|
||||
db.fetch_account(&target.id).await?
|
||||
.disable(db)
|
||||
.await?;
|
||||
|
||||
create_audit_action(
|
||||
db,
|
||||
|
||||
@@ -190,5 +190,5 @@ pub async fn edit_data(
|
||||
.update(db, partial, remove.into_iter().map(Into::into).collect())
|
||||
.await?;
|
||||
|
||||
Ok(Json(server.into()))
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user