client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Sat, 06 Jul 2019 00:59:32 +0200
changeset 203 b378ca8d67af
parent 130 78246db1cbac
permissions -rw-r--r--
Added tag 0.2.2 for changeset 2c1d48085efc

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