Skip to content

Commit

Permalink
Merge pull request #74 from hardchor/fix-build
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
hardchor authored Aug 22, 2016
2 parents c3f2508 + 516f44f commit 873a047
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
4 changes: 3 additions & 1 deletion app/main/tasks/updateLastActiveProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default function updateLastActiveProject(store) {
},
} = store.getState();

store.dispatch(getGithubIssuesAssignedToUser(accessToken));
if (accessToken) {
store.dispatch(getGithubIssuesAssignedToUser(accessToken));
}
}

// every 5 minutes
Expand Down
13 changes: 11 additions & 2 deletions app/shared/reducers/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ export default function job(state = initialState, action) {
};
}

const issues = action.payload || [];
let newState = {
...state,
importError: false,
};
// go through each body, finding "Tracks #..."
action.payload.forEach(issue => {
issues.forEach(issue => {
const identifiers = [
// for issues
...getProjectIdentifiers(issue.body),
Expand All @@ -99,10 +100,18 @@ export default function job(state = initialState, action) {
}

case GET_GITHUB_ISSUES_ASSIGNED_TO_USER: {
if (action.error) {
return {
...state,
importError: true,
};
}

const issues = action.payload || [];
let newState = { ...state };

// extract projects, add updatedAt to project
action.payload.forEach(issue => {
issues.forEach(issue => {
const identifiers = [
// for issues
...getProjectIdentifiers(issue.body),
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,10 @@
"babel-register": "^6.7.2",
"chai": "^3.5.0",
"chromedriver": "^2.23.0",
"co-mocha": "^1.1.2",
"concurrently": "^2.0.0",
"cross-env": "^2.0.0",
"css-loader": "^0.23.1",
"del": "^2.2.2",
"electron-builder": "^5.26.0",
"electron-prebuilt": "^1.0.2",
"electron-rebuild": "^1.1.3",
"eslint": "^3.3.0",
"eslint-config-airbnb": "^10.0.1",
Expand All @@ -88,6 +85,10 @@
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.10.0"
},
"devDependencies": {
"electron-builder": "^5.26.0",
"electron-prebuilt": "^1.0.2"
},
"devEngines": {
"node": "4.x || 5.x || 6.x",
"npm": "2.x || 3.x"
Expand All @@ -96,12 +97,12 @@
"Jack Wilkinson (https://github.com/guacjack)"
],
"build": {
"app-bundle-id": "hardchor.timesheets",
"app-category-type": "public.app-category.productivity",
"appId": "hardchor.timesheets",
"category": "public.app-category.productivity",
"productName": "Timesheets",
"compression": "normal",
"asar": true,
"osx": {
"mac": {
"contents": [
{
"x": 448,
Expand Down

0 comments on commit 873a047

Please sign in to comment.