(id, index)
| 154 | } |
| 155 | |
| 156 | export function decrementCount(id, index) { |
| 157 | return dispatch => { |
| 158 | dispatch(decrement(index)); |
| 159 | return makeTopicRequest('put', { |
| 160 | id: id, |
| 161 | isFull: false, |
| 162 | isIncrement: false |
| 163 | }); |
| 164 | // do something with the ajax response |
| 165 | // You can also dispatch here |
| 166 | // E.g. |
| 167 | // .then(response => {}); |
| 168 | }; |
| 169 | } |
| 170 | |
| 171 | export function destroyTopic(id, index) { |
| 172 | return dispatch => { |
no test coverage detected