Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: settingAppIMValue (#3301)

p0nyc4d50a26d7e8
diff --git a/api/setting.go b/api/setting.go
index b13f27b48a..dd2d7a95dd 100644
--- a/api/setting.go
+++ b/api/setting.go
@@ -79,11 +79,11 @@ func (find *SettingFind) String() string {
// SettingAppIMValue is the setting value of SettingAppIM type setting.
type SettingAppIMValue struct {
- IMType string `json:"imType"`
+ IMType IMType `json:"imType"`
AppID string `json:"appId"`
AppSecret string `json:"appSecret"`
ExternalApproval struct {
- Enabled bool `json:"enabled"`
- ApprovalCode string `json:"approvalCode"`
+ Enabled bool `json:"enabled"`
+ ApprovalCode string
} `json:"externalApproval"`
}