{"action":"created","issue":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/154","labels_url":"https://api.github.com/repos/techfort/LokiJS/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/techfort/LokiJS/issues/154/comments","events_url":"https://api.github.com/repos/techfort/LokiJS/issues/154/events","html_url":"https://github.com/techfort/LokiJS/issues/154","id":81605487,"number":154,"title":"The update doesnt work","user":{"login":"estvmachine","id":2062668,"avatar_url":"https://avatars.githubusercontent.com/u/2062668?v=3","gravatar_id":"","url":"https://api.github.com/users/estvmachine","html_url":"https://github.com/estvmachine","followers_url":"https://api.github.com/users/estvmachine/followers","following_url":"https://api.github.com/users/estvmachine/following{/other_user}","gists_url":"https://api.github.com/users/estvmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/estvmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estvmachine/subscriptions","organizations_url":"https://api.github.com/users/estvmachine/orgs","repos_url":"https://api.github.com/users/estvmachine/repos","events_url":"https://api.github.com/users/estvmachine/events{/privacy}","received_events_url":"https://api.github.com/users/estvmachine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-27T20:12:55Z","updated_at":"2015-05-27T20:57:10Z","closed_at":"2015-05-27T20:57:10Z","body":"Im trying this.\r\n\r\n```javascript\r\n\r\nexports.update= function(lokidb){\r\n  \r\n   return function(req, res){\r\n           \r\n          var advance = {};\r\n           advance= _.extend(advance, req.body);\r\n\r\n           var advances= lokidb.getCollection('advances');\r\n           var advance_old=  advances.find({$loki : advance.id });\r\n           \r\n          advance_old= advance;\r\n  \r\n           advances.update(advance_old);\r\n\r\n          console.log(advances.find());\r\n          console.log(advance_old);\r\n\r\n   }\r\n\r\n}\r\n```\r\n\r\nThe logs thrown differents things, the 'advances.find()'  indicate the document dont updated :(."},"comment":{"url":"https://api.github.com/repos/techfort/LokiJS/issues/comments/106072301","html_url":"https://github.com/techfort/LokiJS/issues/154#issuecomment-106072301","issue_url":"https://api.github.com/repos/techfort/LokiJS/issues/154","id":106072301,"user":{"login":"estvmachine","id":2062668,"avatar_url":"https://avatars.githubusercontent.com/u/2062668?v=3","gravatar_id":"","url":"https://api.github.com/users/estvmachine","html_url":"https://github.com/estvmachine","followers_url":"https://api.github.com/users/estvmachine/followers","following_url":"https://api.github.com/users/estvmachine/following{/other_user}","gists_url":"https://api.github.com/users/estvmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/estvmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estvmachine/subscriptions","organizations_url":"https://api.github.com/users/estvmachine/orgs","repos_url":"https://api.github.com/users/estvmachine/repos","events_url":"https://api.github.com/users/estvmachine/events{/privacy}","received_events_url":"https://api.github.com/users/estvmachine/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:57:09Z","updated_at":"2015-05-27T20:57:09Z","body":"Yes, you can close this issue. Maybe that information its necessary in docs. Thanks for the help."}}