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:
@ -10,7 +10,6 @@ import (
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/v2/coderd/rbac/policy"
|
||||
"github.com/coder/coder/v2/codersdk/healthsdk"
|
||||
)
|
||||
|
||||
// AuditOAuthConvertState is never stored in the database. It is stored in a cookie
|
||||
@ -26,8 +25,8 @@ type AuditOAuthConvertState struct {
|
||||
}
|
||||
|
||||
type HealthSettings struct {
|
||||
ID uuid.UUID `db:"id" json:"id"`
|
||||
DismissedHealthchecks []healthsdk.HealthSection `db:"dismissed_healthchecks" json:"dismissed_healthchecks"`
|
||||
ID uuid.UUID `db:"id" json:"id"`
|
||||
DismissedHealthchecks []string `db:"dismissed_healthchecks" json:"dismissed_healthchecks"`
|
||||
}
|
||||
|
||||
type NotificationsSettings struct {
|
||||
|
Reference in New Issue
Block a user