UNPKG

nodebb-plugin-l24u-lk

Version:

This is lk for l24u.ru

13 lines (11 loc) 354 B
import { accountSaved } from './simple-actions'; import SocketService from '../service/socket-service'; export default function (account) { return (dispatch, getState) => { SocketService.saveAccount(account, error => { if (!error) { dispatch(accountSaved(account)); } }); }; }