aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-25 17:17:34 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-25 17:17:34 +0000
commit52c4d01e4a0e35738e8c1db35a5a4a7ab981803d (patch)
tree0cce833e77942311d25a7c92828d7f5802be14b5 /lib/documents.js
parent2de4641bed73f04d0c1ac345e132c1a79fc48f14 (diff)
Use prefix to generate IDs
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js4
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
};
}