equal
deleted
inserted
replaced
1 import uuidV1 from 'uuid/v1'; |
1 import uuidV1 from 'uuid/v1'; |
2 |
2 |
3 import * as types from '../constants/actionTypes'; |
3 import * as types from '../constants/actionTypes'; |
4 |
4 |
5 export const addNote = (session, text) => { |
5 export const addNote = (session, data) => { |
6 return { |
6 return { |
7 type: types.ADD_NOTE, |
7 type: types.ADD_NOTE, |
8 note: { |
8 note: { |
9 id: uuidV1(), |
9 id: uuidV1(), |
10 session: session.id, |
10 session: session.id, |
11 text: text, |
11 raw: data.raw, |
|
12 plain: data.plain |
12 } |
13 } |
13 }; |
14 }; |
14 } |
15 } |