Skip to content

Commit

Permalink
Merge pull request #1 from appscot/create_edge
Browse files Browse the repository at this point in the history
appscot#116: attempt to fix error on edge creation
  • Loading branch information
tommykennedy committed Jul 10, 2015
2 parents 7fddffd + 10299b1 commit 080b13a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 126 deletions.
126 changes: 0 additions & 126 deletions Test_edge_creation

This file was deleted.

5 changes: 5 additions & 0 deletions lib/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ Record.prototype.serializeValues = function serializeValues(values) {
if(!values[key]['@type']){
values[key]['@type'] = 'd';
}
// workaround for #116: prevent sails-orientdb from sending null or empty @class
// TODO: it probably can be made more elegant
if(!values[key]['@class']){
delete values[key]['@class'];
}
}

// TODO: should just be "type === 'binary'" but for some reason type never seems to
Expand Down

0 comments on commit 080b13a

Please sign in to comment.