{"action":"created","comment":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments/77472020","id":77472020,"diff_hunk":"@@ -268,6 +272,28 @@ function validateWorking(data) {\n             throw new HttpError(\"公司/單位名稱必填\", 422);\n         }\n     }\n+\n+    if (data.has_overtime_salary) {\n+        if([\"yes\", \"no\", \"don't know\"].indexOf(data.has_overtime_salary) === -1) {\n+            throw new HttpError('加班是否有加班費應為是/否/不知道', 422);\n+        }      \n+    }\n+\n+    if(data.overtime_salary_is_legal && data.has_overtime_salary) {","path":"routes/workings.js","position":22,"original_position":22,"commit_id":"85d4a8c7898690832441ef88e4a58eef51fec29e","original_commit_id":"85d4a8c7898690832441ef88e4a58eef51fec29e","user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"body":"YES, 所以，這邊還是少掉我講的 case 沒處理～","created_at":"2016-09-05T05:33:38Z","updated_at":"2016-09-05T05:33:38Z","html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70#discussion_r77472020","pull_request_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments/77472020"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70#discussion_r77472020"},"pull_request":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70","id":78243615,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70","diff_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70.diff","patch_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70.patch","issue_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/70","number":70,"state":"open","locked":false,"title":"Feature: workings 新增欄位","user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-21T01:03:12Z","updated_at":"2016-09-05T05:33:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da9f45864d7879f87da1a592416685b3779fd953","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70/commits","review_comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70/comments","review_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/70/comments","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/85d4a8c7898690832441ef88e4a58eef51fec29e","head":{"label":"goodjoblife:feature/workings/add-fields","ref":"feature/workings/add-fields","sha":"85d4a8c7898690832441ef88e4a58eef51fec29e","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":62027999,"name":"WorkTimeSurvey-backend","full_name":"goodjoblife/WorkTimeSurvey-backend","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","description":"WorkTimeSurvey Backend","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/deployments","created_at":"2016-06-27T05:35:16Z","updated_at":"2016-07-30T16:15:35Z","pushed_at":"2016-09-05T02:29:52Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey-backend.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey-backend.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","homepage":"","size":334,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":7,"default_branch":"master"}},"base":{"label":"goodjoblife:master","ref":"master","sha":"8e2a7cda775f753db6f1e8cceca0d98a088c5842","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":62027999,"name":"WorkTimeSurvey-backend","full_name":"goodjoblife/WorkTimeSurvey-backend","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","description":"WorkTimeSurvey Backend","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/deployments","created_at":"2016-06-27T05:35:16Z","updated_at":"2016-07-30T16:15:35Z","pushed_at":"2016-09-05T02:29:52Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey-backend.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey-backend.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","homepage":"","size":334,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/70"},"issue":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/70"},"comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/85d4a8c7898690832441ef88e4a58eef51fec29e"}}}}
{"actor":{"display_login":"mark86092"}}