Skip to content

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

Should use json annoation instead of jsonapi for the payload since it will be unmarhsalled by JSON.parse in the frontend

天舟f7406b9e8acd
diff --git a/api/policy.go b/api/policy.go
index 6f62abff00..7834da9365 100644
--- a/api/policy.go
+++ b/api/policy.go
@@ -100,7 +100,7 @@ type PolicyService interface {
// BackupPlanPolicy is the policy configuration for backup plan.
type BackupPlanPolicy struct {
- Schedule BackupPlanPolicySchedule `jsonapi:"attr,schedule"`
+ Schedule BackupPlanPolicySchedule `json:"schedule"`
}
func (bp BackupPlanPolicy) String() (string, error) {