firewall: remove redundant session ID param from AddAction method

The SessionID is already present in the Action itself and so this does
not need to be passed in as its own parameter.
This commit is contained in:
Elle Mouton 2025-04-19 14:04:38 +02:00
parent b4aadaa4bd
commit 7edb614e12
No known key found for this signature in database
GPG key ID: D7D916376026F177
4 changed files with 12 additions and 13 deletions

View file

@ -194,6 +194,7 @@ func (r *RequestLogger) addNewAction(ri *RequestInfo,
}
action := &firewalldb.Action{
SessionID: sessionID,
RPCMethod: ri.URI,
AttemptedAt: time.Now(),
State: firewalldb.ActionStateInit,
@ -222,7 +223,7 @@ func (r *RequestLogger) addNewAction(ri *RequestInfo,
}
}
id, err := r.actionsDB.AddAction(sessionID, action)
id, err := r.actionsDB.AddAction(action)
if err != nil {
return err
}