Skip to content

Commit

Permalink
Fixed theoretical data bleed issue on asynchronous create calls durin…
Browse files Browse the repository at this point in the history
…g high load
  • Loading branch information
stevenvelozo committed Jul 14, 2015
1 parent 91f2f34 commit 1eeabb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ after_success:
after_script:
- cat coverage/lcov.info | ./node_modules/codeclimate-test-reporter/bin/codeclimate.js
- cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
notifications:
slack: paviateam:C1q99hL9XXpiPpau2PUrVZPC
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meadow",
"version": "0.1.10",
"version": "0.1.11",
"description": "A data access library.",
"main": "source/Meadow.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion source/behaviors/Meadow-Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var meadowBehaviorCreate = function(pMeadow, pQuery, fCallBack)
return fStageComplete('No record submitted', pQuery, false);
}
// Merge in the default record with the passed-in record for completeness
pQuery.query.records[0] = libUnderscore.extend(pMeadow.schemaFull.defaultObject, pQuery.query.records[0]);
pQuery.query.records[0] = libUnderscore.extend({}, pMeadow.schemaFull.defaultObject, pQuery.query.records[0]);
// Create override is too complex ... punting for now
// if (pMeadow.rawQueries.checkQuery('Create'))
// pQuery.parameters.queryOverride = pMeadow.rawQueries.getQuery('Create');
Expand Down

0 comments on commit 1eeabb0

Please sign in to comment.