MCPcopy
hub / github.com/mlabouardy/komiser / UpdateView

Method UpdateView

controller/views.go:25–28  ·  view source on GitHub ↗
(c context.Context, view models.View, viewId string)

Source from the content-addressed store, hash-verified

23}
24
25func (ctrl *Controller) UpdateView(c context.Context, view models.View, viewId string) (err error) {
26 _, err = ctrl.repo.HandleQuery(c, repository.UpdateViewKey, &view, [][3]string{{"id", "=", viewId}}, "")
27 return
28}
29
30func (ctrl *Controller) DeleteView(c context.Context, viewId string) (err error) {
31 _, err = ctrl.repo.HandleQuery(c, repository.DeleteKey, new(models.View), [][3]string{{"id", "=", viewId}}, "")

Callers 1

UpdateViewHandlerMethod · 0.80

Calls 1

HandleQueryMethod · 0.65

Tested by

no test coverage detected