{"action":"created","comment":{"url":"https://api.github.com/repos/locomote/node-orm2/pulls/comments/137755667","pull_request_review_id":61463836,"id":137755667,"diff_hunk":"@@ -135,17 +171,44 @@ function ChainFind(Model, opts) {\n       this.only(_.difference(Object.keys(opts.properties), omit));\n       return this;\n     },\n+    omitAsync: function () {\n+      var omit = null;\n+      var context = this;\n+\n+      if (arguments.length && Array.isArray(arguments[0])) {\n+        omit = arguments[0];\n+      } else {\n+        omit = Array.prototype.slice.apply(arguments);\n+      }\n+      this.only(_.difference(Object.keys(opts.properties), omit));\n+\n+      return new Bluebird.resolve(context);\n+    },\n     limit: function (limit) {\n       opts.limit = limit;\n       return this;\n     },\n+    limitAsync: function (limit) {\n+      var context = this;\n+      opts.limit = limit;\n+      return new Bluebird.resolve(context);\n+    },\n     skip: function (offset) {\n       return this.offset(offset);\n     },\n+    skipAsync: function (offset) {\n+      var skipOffset = this.offset(offset);\n+      return new Bluebird.resolve(skipOffset);\n+    },\n     offset: function (offset) {\n       opts.offset = offset;\n       return this;\n     },\n+    offsetAsync: function (offset) {","path":"lib/ChainFind.js","position":87,"original_position":87,"commit_id":"c80875ed6cf42035867ec9d6c5f8564879252e82","original_commit_id":"c80875ed6cf42035867ec9d6c5f8564879252e82","user":{"login":"tttmaximttt","id":8621125,"avatar_url":"https://avatars2.githubusercontent.com/u/8621125?v=4","gravatar_id":"","url":"https://api.github.com/users/tttmaximttt","html_url":"https://github.com/tttmaximttt","followers_url":"https://api.github.com/users/tttmaximttt/followers","following_url":"https://api.github.com/users/tttmaximttt/following{/other_user}","gists_url":"https://api.github.com/users/tttmaximttt/gists{/gist_id}","starred_url":"https://api.github.com/users/tttmaximttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tttmaximttt/subscriptions","organizations_url":"https://api.github.com/users/tttmaximttt/orgs","repos_url":"https://api.github.com/users/tttmaximttt/repos","events_url":"https://api.github.com/users/tttmaximttt/events{/privacy}","received_events_url":"https://api.github.com/users/tttmaximttt/received_events","type":"User","site_admin":false},"body":"offset is sync method no need promisification","created_at":"2017-09-08T10:07:08Z","updated_at":"2017-09-08T10:09:31Z","html_url":"https://github.com/locomote/node-orm2/pull/13#discussion_r137755667","pull_request_url":"https://api.github.com/repos/locomote/node-orm2/pulls/13","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/comments/137755667"},"html":{"href":"https://github.com/locomote/node-orm2/pull/13#discussion_r137755667"},"pull_request":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/locomote/node-orm2/pulls/13","id":139998541,"html_url":"https://github.com/locomote/node-orm2/pull/13","diff_url":"https://github.com/locomote/node-orm2/pull/13.diff","patch_url":"https://github.com/locomote/node-orm2/pull/13.patch","issue_url":"https://api.github.com/repos/locomote/node-orm2/issues/13","number":13,"state":"open","locked":false,"title":"Feature/lm 2679 implement promise support in chain methods","user":{"login":"anton-locomote","id":31004234,"avatar_url":"https://avatars1.githubusercontent.com/u/31004234?v=4","gravatar_id":"","url":"https://api.github.com/users/anton-locomote","html_url":"https://github.com/anton-locomote","followers_url":"https://api.github.com/users/anton-locomote/followers","following_url":"https://api.github.com/users/anton-locomote/following{/other_user}","gists_url":"https://api.github.com/users/anton-locomote/gists{/gist_id}","starred_url":"https://api.github.com/users/anton-locomote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anton-locomote/subscriptions","organizations_url":"https://api.github.com/users/anton-locomote/orgs","repos_url":"https://api.github.com/users/anton-locomote/repos","events_url":"https://api.github.com/users/anton-locomote/events{/privacy}","received_events_url":"https://api.github.com/users/anton-locomote/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-08T09:58:05Z","updated_at":"2017-09-08T10:09:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf160a65f68c785c707fdc435b675aa21c0af56c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"dxg","id":227785,"avatar_url":"https://avatars2.githubusercontent.com/u/227785?v=4","gravatar_id":"","url":"https://api.github.com/users/dxg","html_url":"https://github.com/dxg","followers_url":"https://api.github.com/users/dxg/followers","following_url":"https://api.github.com/users/dxg/following{/other_user}","gists_url":"https://api.github.com/users/dxg/gists{/gist_id}","starred_url":"https://api.github.com/users/dxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxg/subscriptions","organizations_url":"https://api.github.com/users/dxg/orgs","repos_url":"https://api.github.com/users/dxg/repos","events_url":"https://api.github.com/users/dxg/events{/privacy}","received_events_url":"https://api.github.com/users/dxg/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/locomote/node-orm2/pulls/13/commits","review_comments_url":"https://api.github.com/repos/locomote/node-orm2/pulls/13/comments","review_comment_url":"https://api.github.com/repos/locomote/node-orm2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/locomote/node-orm2/issues/13/comments","statuses_url":"https://api.github.com/repos/locomote/node-orm2/statuses/c80875ed6cf42035867ec9d6c5f8564879252e82","head":{"label":"locomote:feature/LM-2679-implement-promise-support-in-chain-methods","ref":"feature/LM-2679-implement-promise-support-in-chain-methods","sha":"c80875ed6cf42035867ec9d6c5f8564879252e82","user":{"login":"locomote","id":629258,"avatar_url":"https://avatars2.githubusercontent.com/u/629258?v=4","gravatar_id":"","url":"https://api.github.com/users/locomote","html_url":"https://github.com/locomote","followers_url":"https://api.github.com/users/locomote/followers","following_url":"https://api.github.com/users/locomote/following{/other_user}","gists_url":"https://api.github.com/users/locomote/gists{/gist_id}","starred_url":"https://api.github.com/users/locomote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomote/subscriptions","organizations_url":"https://api.github.com/users/locomote/orgs","repos_url":"https://api.github.com/users/locomote/repos","events_url":"https://api.github.com/users/locomote/events{/privacy}","received_events_url":"https://api.github.com/users/locomote/received_events","type":"Organization","site_admin":false},"repo":{"id":8398576,"name":"node-orm2","full_name":"locomote/node-orm2","owner":{"login":"locomote","id":629258,"avatar_url":"https://avatars2.githubusercontent.com/u/629258?v=4","gravatar_id":"","url":"https://api.github.com/users/locomote","html_url":"https://github.com/locomote","followers_url":"https://api.github.com/users/locomote/followers","following_url":"https://api.github.com/users/locomote/following{/other_user}","gists_url":"https://api.github.com/users/locomote/gists{/gist_id}","starred_url":"https://api.github.com/users/locomote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomote/subscriptions","organizations_url":"https://api.github.com/users/locomote/orgs","repos_url":"https://api.github.com/users/locomote/repos","events_url":"https://api.github.com/users/locomote/events{/privacy}","received_events_url":"https://api.github.com/users/locomote/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locomote/node-orm2","description":"Object Relational Mapping v2","fork":true,"url":"https://api.github.com/repos/locomote/node-orm2","forks_url":"https://api.github.com/repos/locomote/node-orm2/forks","keys_url":"https://api.github.com/repos/locomote/node-orm2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locomote/node-orm2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locomote/node-orm2/teams","hooks_url":"https://api.github.com/repos/locomote/node-orm2/hooks","issue_events_url":"https://api.github.com/repos/locomote/node-orm2/issues/events{/number}","events_url":"https://api.github.com/repos/locomote/node-orm2/events","assignees_url":"https://api.github.com/repos/locomote/node-orm2/assignees{/user}","branches_url":"https://api.github.com/repos/locomote/node-orm2/branches{/branch}","tags_url":"https://api.github.com/repos/locomote/node-orm2/tags","blobs_url":"https://api.github.com/repos/locomote/node-orm2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locomote/node-orm2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locomote/node-orm2/git/refs{/sha}","trees_url":"https://api.github.com/repos/locomote/node-orm2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locomote/node-orm2/statuses/{sha}","languages_url":"https://api.github.com/repos/locomote/node-orm2/languages","stargazers_url":"https://api.github.com/repos/locomote/node-orm2/stargazers","contributors_url":"https://api.github.com/repos/locomote/node-orm2/contributors","subscribers_url":"https://api.github.com/repos/locomote/node-orm2/subscribers","subscription_url":"https://api.github.com/repos/locomote/node-orm2/subscription","commits_url":"https://api.github.com/repos/locomote/node-orm2/commits{/sha}","git_commits_url":"https://api.github.com/repos/locomote/node-orm2/git/commits{/sha}","comments_url":"https://api.github.com/repos/locomote/node-orm2/comments{/number}","issue_comment_url":"https://api.github.com/repos/locomote/node-orm2/issues/comments{/number}","contents_url":"https://api.github.com/repos/locomote/node-orm2/contents/{+path}","compare_url":"https://api.github.com/repos/locomote/node-orm2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locomote/node-orm2/merges","archive_url":"https://api.github.com/repos/locomote/node-orm2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locomote/node-orm2/downloads","issues_url":"https://api.github.com/repos/locomote/node-orm2/issues{/number}","pulls_url":"https://api.github.com/repos/locomote/node-orm2/pulls{/number}","milestones_url":"https://api.github.com/repos/locomote/node-orm2/milestones{/number}","notifications_url":"https://api.github.com/repos/locomote/node-orm2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locomote/node-orm2/labels{/name}","releases_url":"https://api.github.com/repos/locomote/node-orm2/releases{/id}","deployments_url":"https://api.github.com/repos/locomote/node-orm2/deployments","created_at":"2013-02-24T23:20:01Z","updated_at":"2016-11-07T23:37:44Z","pushed_at":"2017-09-08T10:00:11Z","git_url":"git://github.com/locomote/node-orm2.git","ssh_url":"git@github.com:locomote/node-orm2.git","clone_url":"https://github.com/locomote/node-orm2.git","svn_url":"https://github.com/locomote/node-orm2","homepage":"http://dresende.github.com/node-orm2","size":2170,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"locomote:master","ref":"master","sha":"ff4d2540eb48df3f6b87473db58498f20cbbc436","user":{"login":"locomote","id":629258,"avatar_url":"https://avatars2.githubusercontent.com/u/629258?v=4","gravatar_id":"","url":"https://api.github.com/users/locomote","html_url":"https://github.com/locomote","followers_url":"https://api.github.com/users/locomote/followers","following_url":"https://api.github.com/users/locomote/following{/other_user}","gists_url":"https://api.github.com/users/locomote/gists{/gist_id}","starred_url":"https://api.github.com/users/locomote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomote/subscriptions","organizations_url":"https://api.github.com/users/locomote/orgs","repos_url":"https://api.github.com/users/locomote/repos","events_url":"https://api.github.com/users/locomote/events{/privacy}","received_events_url":"https://api.github.com/users/locomote/received_events","type":"Organization","site_admin":false},"repo":{"id":8398576,"name":"node-orm2","full_name":"locomote/node-orm2","owner":{"login":"locomote","id":629258,"avatar_url":"https://avatars2.githubusercontent.com/u/629258?v=4","gravatar_id":"","url":"https://api.github.com/users/locomote","html_url":"https://github.com/locomote","followers_url":"https://api.github.com/users/locomote/followers","following_url":"https://api.github.com/users/locomote/following{/other_user}","gists_url":"https://api.github.com/users/locomote/gists{/gist_id}","starred_url":"https://api.github.com/users/locomote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locomote/subscriptions","organizations_url":"https://api.github.com/users/locomote/orgs","repos_url":"https://api.github.com/users/locomote/repos","events_url":"https://api.github.com/users/locomote/events{/privacy}","received_events_url":"https://api.github.com/users/locomote/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/locomote/node-orm2","description":"Object Relational Mapping v2","fork":true,"url":"https://api.github.com/repos/locomote/node-orm2","forks_url":"https://api.github.com/repos/locomote/node-orm2/forks","keys_url":"https://api.github.com/repos/locomote/node-orm2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/locomote/node-orm2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/locomote/node-orm2/teams","hooks_url":"https://api.github.com/repos/locomote/node-orm2/hooks","issue_events_url":"https://api.github.com/repos/locomote/node-orm2/issues/events{/number}","events_url":"https://api.github.com/repos/locomote/node-orm2/events","assignees_url":"https://api.github.com/repos/locomote/node-orm2/assignees{/user}","branches_url":"https://api.github.com/repos/locomote/node-orm2/branches{/branch}","tags_url":"https://api.github.com/repos/locomote/node-orm2/tags","blobs_url":"https://api.github.com/repos/locomote/node-orm2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/locomote/node-orm2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/locomote/node-orm2/git/refs{/sha}","trees_url":"https://api.github.com/repos/locomote/node-orm2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/locomote/node-orm2/statuses/{sha}","languages_url":"https://api.github.com/repos/locomote/node-orm2/languages","stargazers_url":"https://api.github.com/repos/locomote/node-orm2/stargazers","contributors_url":"https://api.github.com/repos/locomote/node-orm2/contributors","subscribers_url":"https://api.github.com/repos/locomote/node-orm2/subscribers","subscription_url":"https://api.github.com/repos/locomote/node-orm2/subscription","commits_url":"https://api.github.com/repos/locomote/node-orm2/commits{/sha}","git_commits_url":"https://api.github.com/repos/locomote/node-orm2/git/commits{/sha}","comments_url":"https://api.github.com/repos/locomote/node-orm2/comments{/number}","issue_comment_url":"https://api.github.com/repos/locomote/node-orm2/issues/comments{/number}","contents_url":"https://api.github.com/repos/locomote/node-orm2/contents/{+path}","compare_url":"https://api.github.com/repos/locomote/node-orm2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/locomote/node-orm2/merges","archive_url":"https://api.github.com/repos/locomote/node-orm2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/locomote/node-orm2/downloads","issues_url":"https://api.github.com/repos/locomote/node-orm2/issues{/number}","pulls_url":"https://api.github.com/repos/locomote/node-orm2/pulls{/number}","milestones_url":"https://api.github.com/repos/locomote/node-orm2/milestones{/number}","notifications_url":"https://api.github.com/repos/locomote/node-orm2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/locomote/node-orm2/labels{/name}","releases_url":"https://api.github.com/repos/locomote/node-orm2/releases{/id}","deployments_url":"https://api.github.com/repos/locomote/node-orm2/deployments","created_at":"2013-02-24T23:20:01Z","updated_at":"2016-11-07T23:37:44Z","pushed_at":"2017-09-08T10:00:11Z","git_url":"git://github.com/locomote/node-orm2.git","ssh_url":"git@github.com:locomote/node-orm2.git","clone_url":"https://github.com/locomote/node-orm2.git","svn_url":"https://github.com/locomote/node-orm2","homepage":"http://dresende.github.com/node-orm2","size":2170,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/13"},"html":{"href":"https://github.com/locomote/node-orm2/pull/13"},"issue":{"href":"https://api.github.com/repos/locomote/node-orm2/issues/13"},"comments":{"href":"https://api.github.com/repos/locomote/node-orm2/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/locomote/node-orm2/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/locomote/node-orm2/statuses/c80875ed6cf42035867ec9d6c5f8564879252e82"}},"author_association":"NONE"}}
{"actor":{"display_login":"tttmaximttt"}}