{"action":"created","comment":{"url":"https://api.github.com/repos/miiixr/picklete/pulls/comments/38808422","id":38808422,"diff_hunk":"@@ -227,18 +194,19 @@ let ProductController = {\n       }\n       await findProduct.destroy();\n       let ensureDelete = await db.Product.findById(productId);\n-      console.log(\"ensureDelete -->\",ensureDelete);\n-      if(ensureDelete) {\n-        return res.serverError({msg: 'delete失敗'});\n+      if (ensureDelete) {\n+        return res.serverError({\n+          msg: 'delete失敗'\n+        });\n       }\n       return res.redirect('product/index');\n-    }catch(error){\n+    } catch (error) {\n       return res.serverError(error);","path":"api/controllers/ProductController.js","position":229,"original_position":229,"commit_id":"9bb1a7fa1d10820727c3bf6f567f18883507c712","original_commit_id":"9bb1a7fa1d10820727c3bf6f567f18883507c712","user":{"login":"smlsunxie","id":1689227,"avatar_url":"https://avatars.githubusercontent.com/u/1689227?v=3","gravatar_id":"","url":"https://api.github.com/users/smlsunxie","html_url":"https://github.com/smlsunxie","followers_url":"https://api.github.com/users/smlsunxie/followers","following_url":"https://api.github.com/users/smlsunxie/following{/other_user}","gists_url":"https://api.github.com/users/smlsunxie/gists{/gist_id}","starred_url":"https://api.github.com/users/smlsunxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlsunxie/subscriptions","organizations_url":"https://api.github.com/users/smlsunxie/orgs","repos_url":"https://api.github.com/users/smlsunxie/repos","events_url":"https://api.github.com/users/smlsunxie/events{/privacy}","received_events_url":"https://api.github.com/users/smlsunxie/received_events","type":"User","site_admin":false},"body":"同 https://github.com/miiixr/picklete/pull/60/files#r38808420","created_at":"2015-09-05T06:54:11Z","updated_at":"2015-09-05T06:54:11Z","html_url":"https://github.com/miiixr/picklete/pull/60#discussion_r38808422","pull_request_url":"https://api.github.com/repos/miiixr/picklete/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/comments/38808422"},"html":{"href":"https://github.com/miiixr/picklete/pull/60#discussion_r38808422"},"pull_request":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/miiixr/picklete/pulls/60","id":44194805,"html_url":"https://github.com/miiixr/picklete/pull/60","diff_url":"https://github.com/miiixr/picklete/pull/60.diff","patch_url":"https://github.com/miiixr/picklete/pull/60.patch","issue_url":"https://api.github.com/repos/miiixr/picklete/issues/60","number":60,"state":"open","locked":false,"title":"Feature/goodlist product gm search 20150904","user":{"login":"kyoyadmoon","id":5608945,"avatar_url":"https://avatars.githubusercontent.com/u/5608945?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoyadmoon","html_url":"https://github.com/kyoyadmoon","followers_url":"https://api.github.com/users/kyoyadmoon/followers","following_url":"https://api.github.com/users/kyoyadmoon/following{/other_user}","gists_url":"https://api.github.com/users/kyoyadmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoyadmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoyadmoon/subscriptions","organizations_url":"https://api.github.com/users/kyoyadmoon/orgs","repos_url":"https://api.github.com/users/kyoyadmoon/repos","events_url":"https://api.github.com/users/kyoyadmoon/events{/privacy}","received_events_url":"https://api.github.com/users/kyoyadmoon/received_events","type":"User","site_admin":false},"body":"館別和品牌查詢已經ok了\r\n剩下tag關鍵字查詢,不曉得怎麼做比較好","created_at":"2015-09-04T08:43:38Z","updated_at":"2015-09-05T06:54:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d2a8627dde2c126e7d359859577f15fd9906b90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/miiixr/picklete/pulls/60/commits","review_comments_url":"https://api.github.com/repos/miiixr/picklete/pulls/60/comments","review_comment_url":"https://api.github.com/repos/miiixr/picklete/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miiixr/picklete/issues/60/comments","statuses_url":"https://api.github.com/repos/miiixr/picklete/statuses/9bb1a7fa1d10820727c3bf6f567f18883507c712","head":{"label":"kyoyadmoon:feature/goodlist_productGm_search_20150904","ref":"feature/goodlist_productGm_search_20150904","sha":"9bb1a7fa1d10820727c3bf6f567f18883507c712","user":{"login":"kyoyadmoon","id":5608945,"avatar_url":"https://avatars.githubusercontent.com/u/5608945?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoyadmoon","html_url":"https://github.com/kyoyadmoon","followers_url":"https://api.github.com/users/kyoyadmoon/followers","following_url":"https://api.github.com/users/kyoyadmoon/following{/other_user}","gists_url":"https://api.github.com/users/kyoyadmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoyadmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoyadmoon/subscriptions","organizations_url":"https://api.github.com/users/kyoyadmoon/orgs","repos_url":"https://api.github.com/users/kyoyadmoon/repos","events_url":"https://api.github.com/users/kyoyadmoon/events{/privacy}","received_events_url":"https://api.github.com/users/kyoyadmoon/received_events","type":"User","site_admin":false},"repo":{"id":40967803,"name":"picklete","full_name":"kyoyadmoon/picklete","owner":{"login":"kyoyadmoon","id":5608945,"avatar_url":"https://avatars.githubusercontent.com/u/5608945?v=3","gravatar_id":"","url":"https://api.github.com/users/kyoyadmoon","html_url":"https://github.com/kyoyadmoon","followers_url":"https://api.github.com/users/kyoyadmoon/followers","following_url":"https://api.github.com/users/kyoyadmoon/following{/other_user}","gists_url":"https://api.github.com/users/kyoyadmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/kyoyadmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyoyadmoon/subscriptions","organizations_url":"https://api.github.com/users/kyoyadmoon/orgs","repos_url":"https://api.github.com/users/kyoyadmoon/repos","events_url":"https://api.github.com/users/kyoyadmoon/events{/privacy}","received_events_url":"https://api.github.com/users/kyoyadmoon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyoyadmoon/picklete","description":"","fork":true,"url":"https://api.github.com/repos/kyoyadmoon/picklete","forks_url":"https://api.github.com/repos/kyoyadmoon/picklete/forks","keys_url":"https://api.github.com/repos/kyoyadmoon/picklete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyoyadmoon/picklete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyoyadmoon/picklete/teams","hooks_url":"https://api.github.com/repos/kyoyadmoon/picklete/hooks","issue_events_url":"https://api.github.com/repos/kyoyadmoon/picklete/issues/events{/number}","events_url":"https://api.github.com/repos/kyoyadmoon/picklete/events","assignees_url":"https://api.github.com/repos/kyoyadmoon/picklete/assignees{/user}","branches_url":"https://api.github.com/repos/kyoyadmoon/picklete/branches{/branch}","tags_url":"https://api.github.com/repos/kyoyadmoon/picklete/tags","blobs_url":"https://api.github.com/repos/kyoyadmoon/picklete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyoyadmoon/picklete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyoyadmoon/picklete/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyoyadmoon/picklete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyoyadmoon/picklete/statuses/{sha}","languages_url":"https://api.github.com/repos/kyoyadmoon/picklete/languages","stargazers_url":"https://api.github.com/repos/kyoyadmoon/picklete/stargazers","contributors_url":"https://api.github.com/repos/kyoyadmoon/picklete/contributors","subscribers_url":"https://api.github.com/repos/kyoyadmoon/picklete/subscribers","subscription_url":"https://api.github.com/repos/kyoyadmoon/picklete/subscription","commits_url":"https://api.github.com/repos/kyoyadmoon/picklete/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyoyadmoon/picklete/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyoyadmoon/picklete/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyoyadmoon/picklete/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyoyadmoon/picklete/contents/{+path}","compare_url":"https://api.github.com/repos/kyoyadmoon/picklete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyoyadmoon/picklete/merges","archive_url":"https://api.github.com/repos/kyoyadmoon/picklete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyoyadmoon/picklete/downloads","issues_url":"https://api.github.com/repos/kyoyadmoon/picklete/issues{/number}","pulls_url":"https://api.github.com/repos/kyoyadmoon/picklete/pulls{/number}","milestones_url":"https://api.github.com/repos/kyoyadmoon/picklete/milestones{/number}","notifications_url":"https://api.github.com/repos/kyoyadmoon/picklete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyoyadmoon/picklete/labels{/name}","releases_url":"https://api.github.com/repos/kyoyadmoon/picklete/releases{/id}","created_at":"2015-08-18T11:18:54Z","updated_at":"2015-08-18T11:18:55Z","pushed_at":"2015-09-05T06:26:31Z","git_url":"git://github.com/kyoyadmoon/picklete.git","ssh_url":"git@github.com:kyoyadmoon/picklete.git","clone_url":"https://github.com/kyoyadmoon/picklete.git","svn_url":"https://github.com/kyoyadmoon/picklete","homepage":null,"size":2187,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"miiixr:develop","ref":"develop","sha":"92a07b1c2da1bdf5d18dfb2f892fb6d72f737782","user":{"login":"miiixr","id":13635773,"avatar_url":"https://avatars.githubusercontent.com/u/13635773?v=3","gravatar_id":"","url":"https://api.github.com/users/miiixr","html_url":"https://github.com/miiixr","followers_url":"https://api.github.com/users/miiixr/followers","following_url":"https://api.github.com/users/miiixr/following{/other_user}","gists_url":"https://api.github.com/users/miiixr/gists{/gist_id}","starred_url":"https://api.github.com/users/miiixr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miiixr/subscriptions","organizations_url":"https://api.github.com/users/miiixr/orgs","repos_url":"https://api.github.com/users/miiixr/repos","events_url":"https://api.github.com/users/miiixr/events{/privacy}","received_events_url":"https://api.github.com/users/miiixr/received_events","type":"Organization","site_admin":false},"repo":{"id":40162704,"name":"picklete","full_name":"miiixr/picklete","owner":{"login":"miiixr","id":13635773,"avatar_url":"https://avatars.githubusercontent.com/u/13635773?v=3","gravatar_id":"","url":"https://api.github.com/users/miiixr","html_url":"https://github.com/miiixr","followers_url":"https://api.github.com/users/miiixr/followers","following_url":"https://api.github.com/users/miiixr/following{/other_user}","gists_url":"https://api.github.com/users/miiixr/gists{/gist_id}","starred_url":"https://api.github.com/users/miiixr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miiixr/subscriptions","organizations_url":"https://api.github.com/users/miiixr/orgs","repos_url":"https://api.github.com/users/miiixr/repos","events_url":"https://api.github.com/users/miiixr/events{/privacy}","received_events_url":"https://api.github.com/users/miiixr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/miiixr/picklete","description":"","fork":false,"url":"https://api.github.com/repos/miiixr/picklete","forks_url":"https://api.github.com/repos/miiixr/picklete/forks","keys_url":"https://api.github.com/repos/miiixr/picklete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miiixr/picklete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miiixr/picklete/teams","hooks_url":"https://api.github.com/repos/miiixr/picklete/hooks","issue_events_url":"https://api.github.com/repos/miiixr/picklete/issues/events{/number}","events_url":"https://api.github.com/repos/miiixr/picklete/events","assignees_url":"https://api.github.com/repos/miiixr/picklete/assignees{/user}","branches_url":"https://api.github.com/repos/miiixr/picklete/branches{/branch}","tags_url":"https://api.github.com/repos/miiixr/picklete/tags","blobs_url":"https://api.github.com/repos/miiixr/picklete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miiixr/picklete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miiixr/picklete/git/refs{/sha}","trees_url":"https://api.github.com/repos/miiixr/picklete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miiixr/picklete/statuses/{sha}","languages_url":"https://api.github.com/repos/miiixr/picklete/languages","stargazers_url":"https://api.github.com/repos/miiixr/picklete/stargazers","contributors_url":"https://api.github.com/repos/miiixr/picklete/contributors","subscribers_url":"https://api.github.com/repos/miiixr/picklete/subscribers","subscription_url":"https://api.github.com/repos/miiixr/picklete/subscription","commits_url":"https://api.github.com/repos/miiixr/picklete/commits{/sha}","git_commits_url":"https://api.github.com/repos/miiixr/picklete/git/commits{/sha}","comments_url":"https://api.github.com/repos/miiixr/picklete/comments{/number}","issue_comment_url":"https://api.github.com/repos/miiixr/picklete/issues/comments{/number}","contents_url":"https://api.github.com/repos/miiixr/picklete/contents/{+path}","compare_url":"https://api.github.com/repos/miiixr/picklete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miiixr/picklete/merges","archive_url":"https://api.github.com/repos/miiixr/picklete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miiixr/picklete/downloads","issues_url":"https://api.github.com/repos/miiixr/picklete/issues{/number}","pulls_url":"https://api.github.com/repos/miiixr/picklete/pulls{/number}","milestones_url":"https://api.github.com/repos/miiixr/picklete/milestones{/number}","notifications_url":"https://api.github.com/repos/miiixr/picklete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miiixr/picklete/labels{/name}","releases_url":"https://api.github.com/repos/miiixr/picklete/releases{/id}","created_at":"2015-08-04T04:07:03Z","updated_at":"2015-09-03T18:22:22Z","pushed_at":"2015-09-05T06:26:31Z","git_url":"git://github.com/miiixr/picklete.git","ssh_url":"git@github.com:miiixr/picklete.git","clone_url":"https://github.com/miiixr/picklete.git","svn_url":"https://github.com/miiixr/picklete","homepage":null,"size":3128,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/60"},"html":{"href":"https://github.com/miiixr/picklete/pull/60"},"issue":{"href":"https://api.github.com/repos/miiixr/picklete/issues/60"},"comments":{"href":"https://api.github.com/repos/miiixr/picklete/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miiixr/picklete/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/miiixr/picklete/statuses/9bb1a7fa1d10820727c3bf6f567f18883507c712"}}}}