Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I put the delete in the wrong line, moved down..

  • Loading branch information...
commit 94fb10d5605ccd980292f11dcb754165da732bcd 1 parent 3ca4752
@mypark mypark authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/adapters/neo4j.js
View
5 lib/adapters/neo4j.js
@@ -200,9 +200,10 @@ Neo4j.prototype.updateIndexes = function updateIndexes(model, node, cb) {
Neo4j.prototype.save = function save(model, data, callback) {
var self = this;
- //delete id property since that's redundant and we use the node.id
- delete data.id;
+
this.node(data.id, function (err, node) {
+ //delete id property since that's redundant and we use the node.id
+ delete data.id;
if (err) return callback(err);
node.data = cleanup(data);
node.save(function (err) {
Please sign in to comment.
Something went wrong with that request. Please try again.