@opra/mongodb 1.0.0-alpha.23 → 1.0.0-alpha.24

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.
@@ -219,7 +219,8 @@ class MongoCollectionService extends mongo_entity_service_js_1.MongoEntityServic
219
219
  };
220
220
  return this._executeCommand(command, async () => {
221
221
  const filter = mongo_adapter_js_1.MongoAdapter.prepareFilter([await this._getDocumentFilter(command), command.options?.filter]);
222
- command.options = { ...command.options, filter, limit: command.options?.limit || this.defaultLimit };
222
+ const limit = command.options?.limit || this.defaultLimit;
223
+ command.options = { ...command.options, filter, limit };
223
224
  return this._findMany(command);
224
225
  });
225
226
  }
@@ -216,7 +216,8 @@ export class MongoCollectionService extends MongoEntityService {
216
216
  };
217
217
  return this._executeCommand(command, async () => {
218
218
  const filter = MongoAdapter.prepareFilter([await this._getDocumentFilter(command), command.options?.filter]);
219
- command.options = { ...command.options, filter, limit: command.options?.limit || this.defaultLimit };
219
+ const limit = command.options?.limit || this.defaultLimit;
220
+ command.options = { ...command.options, filter, limit };
220
221
  return this._findMany(command);
221
222
  });
222
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "1.0.0-alpha.23",
3
+ "version": "1.0.0-alpha.24",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "ts-gems": "^3.4.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@opra/common": "^1.0.0-alpha.23",
41
- "@opra/core": "^1.0.0-alpha.23",
40
+ "@opra/common": "^1.0.0-alpha.24",
41
+ "@opra/core": "^1.0.0-alpha.24",
42
42
  "mongodb": ">= 6.0.0"
43
43
  },
44
44
  "type": "module",