Skip to content

Commit d50ea79

Browse files
committed
linting and formatting
1 parent 99dbde0 commit d50ea79

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

coderd/users.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ func (api *API) postUser(rw http.ResponseWriter, r *http.Request) {
388388

389389
if len(req.OrganizationIDs) == 0 {
390390
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
391-
Message: fmt.Sprintf("No organization specified to place the user as a member of. It is required to specify at least one organization id to place the user in."),
392-
Detail: fmt.Sprintf("required at least 1 value for the array 'organization_ids'"),
391+
Message: "No organization specified to place the user as a member of. It is required to specify at least one organization id to place the user in.",
392+
Detail: "required at least 1 value for the array 'organization_ids'",
393393
Validations: []codersdk.ValidationError{
394394
{
395395
Field: "organization_ids",
@@ -447,7 +447,6 @@ func (api *API) postUser(rw http.ResponseWriter, r *http.Request) {
447447
})
448448
return
449449
}
450-
451450
}
452451

453452
var loginType database.LoginType

site/e2e/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const createUser = async (orgId: string) => {
3737
password: "s3cure&password!",
3838
login_type: "password",
3939
disable_login: false,
40-
organization_id: orgId,
40+
organization_ids: [orgId],
4141
});
4242
return user;
4343
};

0 commit comments

Comments
 (0)