...
|
...
|
@@ -75,8 +75,10 @@ export function userItemsPressed(item) { |
|
|
|
|
|
export function checkUpdate() {
|
|
|
|
|
|
return (dispatch) => {
|
|
|
return new UserService().checkUpdate()
|
|
|
return (dispatch, getState) => {
|
|
|
let {user} = getState();
|
|
|
let pid = user.profile.pid;
|
|
|
return new UserService().checkUpdate(pid)
|
|
|
.then((json) => {
|
|
|
dispatch(checkUpdateSuccess(json))
|
|
|
})
|
...
|
...
|
|