client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Thu, 06 Dec 2018 01:35:30 +0100
changeset 198 f0f83f5530a6
parent 130 78246db1cbac
permissions -rw-r--r--
Added tag 0.2.0 for changeset 7ee10198f2e1

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
  }
}