remult 0.27.23 → 0.27.24-next.0

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.
@@ -578,10 +578,12 @@ export class RepositoryImplementation {
578
578
  return result;
579
579
  }
580
580
  async _buildEntityDataProviderFindOptions(options) {
581
+ options = { ...options };
581
582
  let opt = {};
582
583
  opt = {};
583
584
  if (!options.orderBy || Object.keys(options.orderBy).length === 0) {
584
- options.orderBy = this._info.entityInfo.defaultOrderBy;
585
+ if (!this._dataProvider.isProxy)
586
+ options.orderBy = this._info.entityInfo.defaultOrderBy;
585
587
  }
586
588
  opt.where = await this._translateWhereToFilter(options.where);
587
589
  if (options.orderBy !== undefined)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.27.23",
3
+ "version": "0.27.24-next.0",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
@@ -946,10 +946,12 @@ var RepositoryImplementation = /** @class */ (function () {
946
946
  return tslib_1.__generator(this, function (_b) {
947
947
  switch (_b.label) {
948
948
  case 0:
949
+ options = tslib_1.__assign({}, options);
949
950
  opt = {};
950
951
  opt = {};
951
952
  if (!options.orderBy || Object.keys(options.orderBy).length === 0) {
952
- options.orderBy = this._info.entityInfo.defaultOrderBy;
953
+ if (!this._dataProvider.isProxy)
954
+ options.orderBy = this._info.entityInfo.defaultOrderBy;
953
955
  }
954
956
  _a = opt;
955
957
  return [4 /*yield*/, this._translateWhereToFilter(options.where)];