Merge pull request #43 from toddself/documentation-fix
Fix order of arguments to effects
This commit is contained in:
@@ -478,7 +478,7 @@ function view (params, state, send) {
|
|||||||
|
|
||||||
app.model({
|
app.model({
|
||||||
effects: {
|
effects: {
|
||||||
login: (state, action, send) => {
|
login: (action, state, send) => {
|
||||||
http.post('/login', { body: action.data }, (err, res, body) => {
|
http.post('/login', { body: action.data }, (err, res, body) => {
|
||||||
send('authorize', { payload: body })
|
send('authorize', { payload: body })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user