fix(ci): align lint-safe security paths

This commit is contained in:
elky
2026-09-05 03:19:53 +08:00
parent f5e1420ee6
commit 33d5cd5993
45 changed files with 180 additions and 132 deletions
@@ -1638,9 +1638,11 @@ WHERE id = $1 AND proxy_metadata::jsonb = $3::jsonb
.await
.map_postgres_err()?;
let stale = result.rows_affected() == 0;
let persisted_detail = stale
.then(|| format!("[stale_ignored] {event_detail}"))
.unwrap_or(event_detail);
let persisted_detail = if stale {
format!("[stale_ignored] {event_detail}")
} else {
event_detail
};
sqlx::query(INSERT_PROXY_NODE_EVENT_SQL)
.bind(&mutation.node_id)
@@ -2049,6 +2049,10 @@ WHERE id = $1
self.find_user_auth_by_id(user_id).await
}
// This operation compares and restores four correlated snapshots in one
// transaction. Keep the explicit arguments visible at the call site so a
// future restore cannot accidentally omit one consistency boundary.
#[allow(clippy::too_many_arguments)]
pub async fn restore_local_auth_user_state_if_matches(
&self,
expected_auth: &StoredUserAuthRecord,