mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: disallow sdk imports from the db package, switch enum to string(#14539)
* chore: disallow sdk imports from the db package * convert to string
This commit is contained in:
@ -20,6 +20,7 @@ import (
|
||||
"github.com/coder/coder/v2/coderd/httpmw"
|
||||
"github.com/coder/coder/v2/coderd/rbac"
|
||||
"github.com/coder/coder/v2/coderd/rbac/policy"
|
||||
"github.com/coder/coder/v2/coderd/util/slice"
|
||||
"github.com/coder/coder/v2/codersdk"
|
||||
"github.com/coder/coder/v2/codersdk/healthsdk"
|
||||
)
|
||||
@ -250,7 +251,7 @@ func (api *API) putDeploymentHealthSettings(rw http.ResponseWriter, r *http.Requ
|
||||
|
||||
aReq.New = database.HealthSettings{
|
||||
ID: uuid.New(),
|
||||
DismissedHealthchecks: settings.DismissedHealthchecks,
|
||||
DismissedHealthchecks: slice.ToStrings(settings.DismissedHealthchecks),
|
||||
}
|
||||
|
||||
err = api.Database.UpsertHealthSettings(ctx, string(settingsJSON))
|
||||
|
Reference in New Issue
Block a user