pub fn upsert_note(notes: &mut Vec<Note>, annotated: &ObjectId, blob: ObjectId)
Replace (or insert) the note for annotated inside an in-memory note list.
annotated