Skip to content

Commit 5987749

Browse files
committed
fix comment
1 parent f1b4fcf commit 5987749

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

enterprise/coderd/provisionerkeys.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ func (api *API) provisionerKeyDaemons(rw http.ResponseWriter, r *http.Request) {
147147

148148
pkDaemons := []codersdk.ProvisionerKeyDaemons{}
149149
for _, key := range sdkKeys {
150-
// Currently the user-auth key orgID is hardcoded to the default org.
150+
// The key.OrganizationID for the `user-auth` key is hardcoded to
151+
// the default org in the database and we are overwriting it here
152+
// to be the correct org we used to query the list.
151153
// This will be changed when we update the `user-auth` keys to be
152154
// directly tied to a user ID.
153155
if key.ID.String() == codersdk.ProvisionerKeyIDUserAuth {

0 commit comments

Comments
 (0)