mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: revert status code change for delete users endpoint (#14168)
Revert from https://github.com/coder/coder/pull/13870
This commit is contained in:
@ -309,7 +309,7 @@ func (c *Client) DeleteUser(ctx context.Context, id uuid.UUID) error {
|
||||
return err
|
||||
}
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusNoContent {
|
||||
if res.StatusCode != http.StatusOK {
|
||||
return ReadBodyAsError(res)
|
||||
}
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user