mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: upgrade golangci-lint to v1.46.0 (#1373)
This commit is contained in:
@@ -1733,20 +1733,7 @@ func (q *fakeQuerier) InsertAuditLog(_ context.Context, arg database.InsertAudit
|
||||
q.mutex.Lock()
|
||||
defer q.mutex.Unlock()
|
||||
|
||||
alog := database.AuditLog{
|
||||
ID: arg.ID,
|
||||
Time: arg.Time,
|
||||
UserID: arg.UserID,
|
||||
OrganizationID: arg.OrganizationID,
|
||||
Ip: arg.Ip,
|
||||
UserAgent: arg.UserAgent,
|
||||
ResourceType: arg.ResourceType,
|
||||
ResourceID: arg.ResourceID,
|
||||
ResourceTarget: arg.ResourceTarget,
|
||||
Action: arg.Action,
|
||||
Diff: arg.Diff,
|
||||
StatusCode: arg.StatusCode,
|
||||
}
|
||||
alog := database.AuditLog(arg)
|
||||
|
||||
q.auditLogs = append(q.auditLogs, alog)
|
||||
slices.SortFunc(q.auditLogs, func(a, b database.AuditLog) bool {
|
||||
|
||||
Reference in New Issue
Block a user