client/src/actions/notesActions.js
changeset 12 48ddaa42b810
parent 3 3b5d37d84cfe
child 15 4a8bbd314a46
--- a/client/src/actions/notesActions.js	Wed May 31 17:28:12 2017 +0200
+++ b/client/src/actions/notesActions.js	Wed May 31 17:51:54 2017 +0200
@@ -2,12 +2,13 @@
 
 import * as types from '../constants/actionTypes';
 
-export const addNote = (noteText) => {
+export const addNote = (session, text) => {
   return {
     type: types.ADD_NOTE,
     note: {
       id: uuidV1(),
-      text: noteText
+      session: session.id,
+      text: text,
     }
   };
 }