mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-12 22:20:19 +08:00
fix(ci): align lint-safe security paths
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user