client/src/sagas/SessionSyncronizer.js
changeset 132 906a6c7c7943
parent 129 d48946d164c6
child 133 6f3078f7fd47
equal deleted inserted replaced
131:adad5563603c 132:906a6c7c7943
    40     return {
    40     return {
    41       ext_id: localObjInst.get('_id'),
    41       ext_id: localObjInst.get('_id'),
    42       date: localObjInst.get('date'),
    42       date: localObjInst.get('date'),
    43       title: localObjInst.get('title'),
    43       title: localObjInst.get('title'),
    44       description: localObjInst.get('description'),
    44       description: localObjInst.get('description'),
       
    45       group: localObjInst.get('group'),
    45       protocol: ''
    46       protocol: ''
    46     };
    47     };
    47   }
    48   }
    48 
    49 
    49   getLocalRecord(remoteObj) {
    50   getLocalRecord(remoteObj) {
    50     return new SessionRecord({
    51     return SessionRecord({
    51         _id: remoteObj.ext_id,
    52         _id: remoteObj.ext_id,
    52         title: remoteObj.title,
    53         title: remoteObj.title,
    53         description: remoteObj.description,
    54         description: remoteObj.description,
    54         date: moment(remoteObj.date).toDate(),
    55         date: moment(remoteObj.date).toDate(),
    55         action: ActionEnum.NONE,
    56         action: ActionEnum.NONE,
    56         group: null
    57         group: remoteObj.group,
       
    58         protocol: remoteObj.protocol,
    57     });
    59     });
    58   }
    60   }
    59 
    61 
    60   // actions
    62   // actions
    61   doDeleteLocalObj(localObjId) {
    63   doDeleteLocalObj(localObjId) {