Skip to content

Commit

Permalink
fix(manager): do not request project after fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Nov 8, 2017
1 parent aa7dffa commit 4cdb527
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions lib/manager/actions/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,6 @@ export function runningFetchFeedsForProject () {
}
}

export function receiveFetchFeedsForProject (project) {
return {
type: 'RECEIVE_FETCH_FEED_FOR_PROJECT',
project
}
}

export function fetchFeedsForProject (project) {
return function (dispatch, getState) {
dispatch(runningFetchFeedsForProject())
Expand All @@ -235,15 +228,14 @@ export function fetchFeedsForProject (project) {
} else if (res.status >= 400) {
dispatch(setErrorMessage('Error fetching project feeds'))
} else {
dispatch(receiveFetchFeedsForProject(project))
dispatch(startJobMonitor())
return res.json()
}
})
.then(result => {
console.log('fetchFeed result', result)
dispatch(receiveFetchFeedsForProject())
dispatch((fetchProjectWithFeeds(project.id)))
console.log('fetchProject result', result)
// Do nothing here. Fetch feed jobs will kick off if there are any
// updated feeds, with their own handlers for finished jobs.
})
}
}
Expand Down

0 comments on commit 4cdb527

Please sign in to comment.