{"action":"opened","issue":{"url":"https://api.github.com/repos/mean-expert-official/loopback-sdk-builder/issues/181","repository_url":"https://api.github.com/repos/mean-expert-official/loopback-sdk-builder","labels_url":"https://api.github.com/repos/mean-expert-official/loopback-sdk-builder/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/mean-expert-official/loopback-sdk-builder/issues/181/comments","events_url":"https://api.github.com/repos/mean-expert-official/loopback-sdk-builder/issues/181/events","html_url":"https://github.com/mean-expert-official/loopback-sdk-builder/issues/181","id":187138154,"number":181,"title":"modelApi.linkModel2() method not working.","user":{"login":"Serranom4","id":17414885,"avatar_url":"https://avatars.githubusercontent.com/u/17414885?v=3","gravatar_id":"","url":"https://api.github.com/users/Serranom4","html_url":"https://github.com/Serranom4","followers_url":"https://api.github.com/users/Serranom4/followers","following_url":"https://api.github.com/users/Serranom4/following{/other_user}","gists_url":"https://api.github.com/users/Serranom4/gists{/gist_id}","starred_url":"https://api.github.com/users/Serranom4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serranom4/subscriptions","organizations_url":"https://api.github.com/users/Serranom4/orgs","repos_url":"https://api.github.com/users/Serranom4/repos","events_url":"https://api.github.com/users/Serranom4/events{/privacy}","received_events_url":"https://api.github.com/users/Serranom4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-03T17:31:53Z","updated_at":"2016-11-03T17:31:53Z","closed_at":null,"body":"#### What type of issue are you creating?\r\n- [x] Bug\r\n- [ ] Enhancement\r\n- [ ] Question\r\n\r\n#### What version of this module are you using?\r\n- [ ] 2.0.10 (Stable)\r\n- [x] 2.1.0-beta.14\r\n- [ ] Other\r\n\r\nWrite other if any:\r\n\r\n#### Please add a description for your issue:\r\nI have two models (Room and Account) with the relation hasAndBelongsToMany in both directions and when I try to use the method RoomApi.linkAccounts() I don't get any response and apparently from the logs of my server the request was never made. I tried to track down the issue and found that if I change\r\n`\r\nlet postBody: any = {\r\n      data: data\r\n    };\r\n`\r\nto \r\n`\r\nlet postBody: any = {};\r\n`\r\nin the linkAccounts() method all works perfect."}}
{"actor":{"display_login":"Serranom4"}}