masterrecord 0.3.51 → 0.3.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -448,11 +448,11 @@ class queryMethods{
448
448
  }
449
449
  else if(this.__context.isMySQL){
450
450
  var entityValue = await this.__context._SQLEngine.get(this.__queryObject.script, this.__entity, this.__context);
451
- result = this.__singleEntityBuilder(entityValue[0]);
451
+ result = this.__singleEntityBuilder(entityValue);
452
452
  }
453
453
  else if(this.__context.isPostgres){
454
454
  var entityValue = await this.__context._SQLEngine.get(this.__queryObject.script, this.__entity, this.__context);
455
- result = this.__singleEntityBuilder(entityValue[0]);
455
+ result = this.__singleEntityBuilder(entityValue);
456
456
  }
457
457
  else {
458
458
  this.__reset();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "masterrecord",
3
- "version": "0.3.51",
3
+ "version": "0.3.52",
4
4
  "description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
5
5
  "main": "MasterRecord.js",
6
6
  "bin": {