Rename MonetizationPointer field to Monetization

This commit is contained in:
Matt Baer 2021-03-25 13:02:35 -04:00
parent 9aa5fc4420
commit 3e282e4c85
2 changed files with 2 additions and 2 deletions

View file

@ -822,7 +822,7 @@ func viewEditCollection(app *App, u *User, w http.ResponseWriter, r *http.Reques
}
// Add collection properties
c.MonetizationPointer = app.db.GetCollectionAttribute(c.ID, "monetization_pointer")
c.Monetization = app.db.GetCollectionAttribute(c.ID, "monetization_pointer")
silenced, err := app.db.IsUserSilenced(u.ID)
if err != nil {

View file

@ -56,7 +56,7 @@ type (
PublicOwner bool `datastore:"public_owner" json:"-"`
URL string `json:"url,omitempty"`
MonetizationPointer string `json:"monetization_pointer,omitempty"`
Monetization string `json:"monetization_pointer,omitempty"`
db *datastore
hostName string