diff -r abf9f3ff2635 -r 4cfeabef7d5e client/src/actions/notesActions.js --- a/client/src/actions/notesActions.js Mon Jun 12 18:09:13 2017 +0200 +++ b/client/src/actions/notesActions.js Mon Jun 12 18:12:38 2017 +0200 @@ -4,10 +4,10 @@ export const addNote = (session, data) => { return { - type: types.ADD_NOTE, + type: types.ADD_NOTE_ASYNC, note: { - id: uuidV1(), - session: session.id, + _id: uuidV1(), + session: session._id, raw: data.raw, plain: data.plain, html: data.html, @@ -17,3 +17,10 @@ } }; } + +export const loadNotesBySession = (session) => { + return { + type: types.LOAD_NOTES_BY_SESSION_ASYNC, + session: session + } +}