notes: convert for_each_note to struct object_id