client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 14:49:30 +0100
changeset 185 c8678091a837
parent 130 78246db1cbac
permissions -rw-r--r--
Added tag 0.1.0 for changeset aac6db7cea99

import * as types from '../constants/actionTypes';

export const updateLastSync = (timestamp) => {
  return {
    type: types.SYNC_SET_LAST_SYNC,
    value: timestamp
  }
}

export const endSynchronize = () => {
  return {
    type: types.SYNC_END_SYNC
  }
}

export const startSynchronize = () => {
  return {
    type: types.SYNC_START_SYNC
  }
}