Snapshots: Do not return internal database ids (#77672)

This commit is contained in:
Ryan McKinley
2023-11-06 06:53:52 -08:00
committed by GitHub
parent bc7c7bec16
commit 5e7f6e8699
5 changed files with 3 additions and 42 deletions

View File

@@ -29,11 +29,11 @@ type DashboardSnapshot struct {
// DashboardSnapshotDTO without dashboard map
type DashboardSnapshotDTO struct {
ID int64 `json:"id" xorm:"id"`
ID int64 `json:"-" xorm:"id"`
Name string `json:"name"`
Key string `json:"key"`
OrgID int64 `json:"orgId" xorm:"org_id"`
UserID int64 `json:"userId" xorm:"user_id"`
OrgID int64 `json:"-" xorm:"org_id"`
UserID int64 `json:"-" xorm:"user_id"`
External bool `json:"external"`
ExternalURL string `json:"externalUrl" xorm:"external_url"`