{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/loopback-example-full-stack/issues/56","labels_url":"https://api.github.com/repos/strongloop/loopback-example-full-stack/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-example-full-stack/issues/56/comments","events_url":"https://api.github.com/repos/strongloop/loopback-example-full-stack/issues/56/events","html_url":"https://github.com/strongloop/loopback-example-full-stack/issues/56","id":60337297,"number":56,"title":"Postgres - Editing a record","user":{"login":"anupsaund","id":6728822,"avatar_url":"https://avatars.githubusercontent.com/u/6728822?v=3","gravatar_id":"","url":"https://api.github.com/users/anupsaund","html_url":"https://github.com/anupsaund","followers_url":"https://api.github.com/users/anupsaund/followers","following_url":"https://api.github.com/users/anupsaund/following{/other_user}","gists_url":"https://api.github.com/users/anupsaund/gists{/gist_id}","starred_url":"https://api.github.com/users/anupsaund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anupsaund/subscriptions","organizations_url":"https://api.github.com/users/anupsaund/orgs","repos_url":"https://api.github.com/users/anupsaund/repos","events_url":"https://api.github.com/users/anupsaund/events{/privacy}","received_events_url":"https://api.github.com/users/anupsaund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T12:40:36Z","updated_at":"2015-03-09T12:40:36Z","closed_at":null,"body":"Editing a Todo - creates an index violation as it tries to add the same record into my Todo table.\r\n\r\nSee attached screenshot...\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/6728822/6555006/78dc7fca-c659-11e4-96ac-3cc129095169.PNG)\r\n\r\n-- Table: todo\r\n\r\nCREATE TABLE todo\r\n(\r\n  title text,\r\n  completed boolean,\r\n  created double precision,\r\n  id text NOT NULL,\r\n  CONSTRAINT pkid PRIMARY KEY (id)\r\n)\r\nWITH (\r\n  OIDS=FALSE\r\n);\r\nALTER TABLE todo\r\n  OWNER TO postgres;"}}