Skip to content

Commit 10224ad

Browse files
committed
gen
1 parent 06378e4 commit 10224ad

File tree

7 files changed

+162
-8
lines changed

7 files changed

+162
-8
lines changed

coderd/apidoc/docs.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/organizations.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,10 @@ func (api *API) patchOrganization(rw http.ResponseWriter, r *http.Request) {
157157
return
158158
}
159159

160-
organization, err := api.Database.InsertOrganization(ctx, database.InsertOrganizationParams{
161-
ID: uuid.New(),
162-
Name: req.Name,
163-
CreatedAt: dbtime.Now(),
164-
UpdatedAt: dbtime.Now(),
165-
Description: "",
160+
organization, err := api.Database.UpdateOrganization(ctx, database.UpdateOrganizationParams{
161+
ID: uuid.New(),
162+
Name: req.Name,
163+
UpdatedAt: dbtime.Now(),
166164
})
167165
if err != nil {
168166
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{

coderd/rbac/object.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package rbac
22

33
import (
4-
"fmt"
5-
64
"github.com/google/uuid"
5+
"golang.org/x/xerrors"
76

87
"github.com/coder/coder/v2/coderd/rbac/policy"
98
)

docs/api/organizations.md

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/schemas.md

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)