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, groupName, protocol) => { |
6 export const createSession = (sessionId, groupName, protocol, title = '', description = '') => { |
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: title, |
13 description: '', |
13 description: description, |
14 group: groupName, |
14 group: groupName, |
15 protocol: protocol, |
15 protocol: protocol, |
16 action: ActionEnum.CREATED |
16 action: ActionEnum.CREATED |
17 }; |
17 }; |
18 |
18 |