client/src/actions/syncActions.js
author ymh <ymh.work@gmail.com>
Sat, 01 Dec 2018 02:38:21 +0100
changeset 189 3470535a6caa
parent 130 78246db1cbac
permissions -rw-r--r--
Added tag 0.1.1 for changeset 00cf90eb0f5a

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