diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-25 17:17:34 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-25 17:17:34 +0000 |
| commit | 52c4d01e4a0e35738e8c1db35a5a4a7ab981803d (patch) | |
| tree | 0cce833e77942311d25a7c92828d7f5802be14b5 /lib/documents.js | |
| parent | 2de4641bed73f04d0c1ac345e132c1a79fc48f14 (diff) | |
Use prefix to generate IDs
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 }; } |
