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

Method GetContent

pkg/server/app/notes.go:95–101  ·  view source on GitHub ↗

GetContent gets the content from the UpdateNoteParams

()

Source from the content-addressed store, hash-verified

93
94// GetContent gets the content from the UpdateNoteParams
95func (r UpdateNoteParams) GetContent() string {
96 if r.Content == nil {
97 return ""
98 }
99
100 return *r.Content
101}
102
103// UpdateNote creates a note with the next usn and updates the user's max_usn
104func (a *App) UpdateNote(tx *gorm.DB, user database.User, note database.Note, p *UpdateNoteParams) (database.Note, error) {

Callers 1

UpdateNoteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected