UNPKG

nodebb-plugin-l24u-lk

Version:

This is lk for l24u.ru

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