Example #1
0
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
}
Example #2
0
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
}
Example #3
0
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
}