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

Function validateCreateNotePayload

pkg/server/controllers/notes.go:193–199  ·  view source on GitHub ↗
(p createNotePayload)

Source from the content-addressed store, hash-verified

191}
192
193func validateCreateNotePayload(p createNotePayload) error {
194 if p.BookUUID == "" {
195 return app.ErrBookUUIDRequired
196 }
197
198 return nil
199}
200
201func (n *Notes) create(r *http.Request) (database.Note, error) {
202 user := context.User(r.Context())

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected