Skip to content

Commit

Permalink
Cleanup data before saving in neoj4
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Oct 4, 2011
1 parent 975b148 commit 5285677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neo4j.js
Expand Up @@ -31,7 +31,7 @@ Neo4j.prototype.node = function find(id, callback) {

Neo4j.prototype.create = function create(model, data, callback) {
data.nodeType = model;
var node = this.client.createNode(data);
var node = this.client.createNode(cleanup(data));
node.save(function (err) {
if (err) {
return callback && callback(err);
Expand Down

0 comments on commit 5285677

Please sign in to comment.