fix: fix the issues caused by authifier migration

Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
İspik
2026-06-28 16:47:16 +03:00
parent 08fb35c3f9
commit cf4b9ba2ca
11 changed files with 24 additions and 26 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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(())
}