equal
deleted
inserted
replaced
1 import { now } from '../utils'; |
1 import { now } from '../utils'; |
2 import { ActionEnum } from '../constants' |
2 import { ActionEnum } from '../constants' |
3 import * as types from '../constants/actionTypes'; |
3 import * as types from '../constants/actionTypes'; |
4 |
4 |
5 |
5 |
6 export const createSession = (sessionId) => { |
6 export const createSession = (sessionId, groupName, protocol) => { |
7 |
7 |
8 const newSession = { |
8 const newSession = { |
9 _id: sessionId, |
9 _id: sessionId, |
10 ext_id: sessionId, |
10 ext_id: sessionId, |
11 date: now(), |
11 date: now(), |
12 title: '', |
12 title: '', |
13 description: '', |
13 description: '', |
|
14 group: groupName, |
|
15 protocol: protocol, |
14 action: ActionEnum.CREATED |
16 action: ActionEnum.CREATED |
15 }; |
17 }; |
16 |
18 |
17 return { |
19 return { |
18 type: types.CREATE_SESSION, |
20 type: types.CREATE_SESSION, |