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 }