MCPcopy Index your code
hub / github.com/dnote/dnote / validateUpdateNotePayload

Function validateUpdateNotePayload

pkg/server/controllers/notes.go:303–309  ·  view source on GitHub ↗
(p updateNotePayload)

Source from the content-addressed store, hash-verified

301}
302
303func validateUpdateNotePayload(p updateNotePayload) error {
304 if p.BookUUID == nil && p.Content == nil {
305 return app.ErrEmptyUpdate
306 }
307
308 return nil
309}
310
311func (n *Notes) update(r *http.Request) (database.Note, error) {
312 vars := mux.Vars(r)

Callers 1

updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected