From 52c4d01e4a0e35738e8c1db35a5a4a7ab981803d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jan 2015 17:17:34 +0000 Subject: Use prefix to generate IDs --- lib/documents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index 5ec8aaf..78bea1a 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -88,7 +88,7 @@ function NoteReference(options) { function Notes(notes) { this._notes = _.indexBy(notes, function(note) { - return noteKey(note.noteType, note.id); + return noteKey(note.noteType, note.noteId); }); } @@ -104,7 +104,7 @@ function Note(options) { return { type: types.note, noteType: options.noteType, - id: options.id, + noteId: options.noteId, body: options.body }; } -- cgit v1.2.3