Skip to content

Commit bb4432e

Browse files
committed
Handle err no rows
1 parent 856293d commit bb4432e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspacebuilds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
404404
Scopes: []database.ParameterScope{database.ParameterScopeWorkspace},
405405
ScopeIds: []uuid.UUID{workspace.ID},
406406
})
407-
if err != nil {
407+
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
408408
return xerrors.Errorf("Fetch previous parameters: %w", err)
409409
}
410410

0 commit comments

Comments
 (0)