@declaro/data 2.0.0-beta.49 → 2.0.0-beta.50

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.
@@ -89936,10 +89936,7 @@ class MockMemoryRepository {
89936
89936
  throw new Error("Primary key is not defined in the schema metadata");
89937
89937
  }
89938
89938
  const item = await this.data.get(input[this.entityMetadata.primaryKey]);
89939
- if (!item) {
89940
- throw new Error("Item not found");
89941
- }
89942
- return item;
89939
+ return item || null;
89943
89940
  }
89944
89941
  async loadMany(inputs) {
89945
89942
  if (!this.entityMetadata?.primaryKey) {
@@ -90053,5 +90050,5 @@ export {
90053
90050
  BaseModelService
90054
90051
  };
90055
90052
 
90056
- //# debugId=E2D465B24E14132C64756E2164756E21
90053
+ //# debugId=072E5FB9461ED20064756E2164756E21
90057
90054
  //# sourceMappingURL=index.js.map