func (r *AccountRepository) Update(account *core.Account) error { _, err := dat.Update(r, account.ID(), account) if err != nil { log.Printf("Error updating account: %s", err) } return err }
func (r *PostRepository) Update(post *core.Post) error { _, err := dat.Update(r, post.ID(), post) if err != nil { log.Printf("Error updating post: %s", err) } return err }
func (r *TopicRepository) Update(topic *core.Topic) error { _, err := dat.Update(r, topic.ID(), topic) if err != nil { log.Printf("Error updating topic: %s", err) } return err }