UNPKG

nodebb-plugin-l24u-lk

Version:

This is lk for l24u.ru

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