Skip to content

Commit e5dbe17

Browse files
committed
lint
1 parent 7308943 commit e5dbe17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coderd/audit/request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Request[T Auditable] struct {
3131

3232
Old T
3333
New T
34-
UserId uuid.UUID
34+
UserID uuid.UUID
3535
}
3636

3737
type BuildAuditParams[T Auditable] struct {
@@ -163,7 +163,7 @@ func InitRequest[T Auditable](w http.ResponseWriter, p *RequestParams) (*Request
163163
if ok {
164164
userID = key.UserID
165165
} else {
166-
userID = req.UserId
166+
userID = req.UserID
167167
}
168168

169169
ip := parseIP(p.Request.RemoteAddr)

coderd/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ func (api *API) postLogin(rw http.ResponseWriter, r *http.Request) {
10301030
return
10311031
}
10321032

1033-
aReq.UserId = user.ID
1033+
aReq.UserID = user.ID
10341034

10351035
// If the user doesn't exist, it will be a default struct.
10361036
equal, err := userpassword.Compare(string(user.HashedPassword), loginWithPassword.Password)

0 commit comments

Comments
 (0)