Update lib/adapters/neo4j.js
don't save an id property on update since there is already a node id from neo4j
This commit is contained in:
parent
7003a3e8c7
commit
53831da913
|
@ -342,6 +342,9 @@ Neo4j.prototype.updateAttributes = function updateAttributes(model, id, data, cb
|
||||||
|
|
||||||
function cleanup(data) {
|
function cleanup(data) {
|
||||||
if (!data) return null;
|
if (!data) return null;
|
||||||
|
|
||||||
|
//don't save an id property on update since there is already a node id from neo4j
|
||||||
|
delete data.id;
|
||||||
var res = {};
|
var res = {};
|
||||||
Object.keys(data).forEach(function (key) {
|
Object.keys(data).forEach(function (key) {
|
||||||
var v = data[key];
|
var v = data[key];
|
||||||
|
|
Loading…
Reference in New Issue