@zuzjs/orm 0.2.8 → 0.2.9

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.
@@ -417,7 +417,7 @@ class ZormQueryBuilder extends Promise {
417
417
  hasRows: _select.length > 0,
418
418
  count: _select.length,
419
419
  row: _select.length > 0 ? _select[0] : null,
420
- rows: _select.length > 1 ? _select : [],
420
+ rows: _select.length == 1 ? [_select[0]] : _select,
421
421
  };
422
422
  if (this.isActiveRecord) {
423
423
  _result.save = () => this._saveActiveRecord(_select[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuzjs/orm",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "keywords": [
5
5
  "orm",
6
6
  "zuz",