File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"github.com/coder/coder/coderd/database"
12
12
)
13
13
14
- type RequstParams struct {
14
+ type RequestParams struct {
15
15
Audit Auditor
16
16
Log slog.Logger
17
17
@@ -21,7 +21,7 @@ type RequstParams struct {
21
21
}
22
22
23
23
type Request [T Auditable ] struct {
24
- params * RequstParams
24
+ params * RequestParams
25
25
26
26
Old T
27
27
New T
@@ -30,7 +30,7 @@ type Request[T Auditable] struct {
30
30
// InitRequest initializes an audit log for a request. It returns a function
31
31
// that should be deferred, causing the audit log to be committed when the
32
32
// handler returns.
33
- func InitRequest [T Auditable ](w http.ResponseWriter , p * RequstParams ) (* Request [T ], func ()) {
33
+ func InitRequest [T Auditable ](w http.ResponseWriter , p * RequestParams ) (* Request [T ], func ()) {
34
34
sw , ok := w .(chimw.WrapResponseWriter )
35
35
if ! ok {
36
36
panic ("dev error: http.ResponseWriter is not chimw.WrapResponseWriter" )
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ export interface AssignableRoles extends Role {
35
35
}
36
36
37
37
// From codersdk/audit.go
38
+ // Embedded anonymous struct, please fix by naming it
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
38
40
export type AuditDiff = Record < string , any >
39
41
40
42
// From codersdk/audit.go
You can’t perform that action at this time.
0 commit comments