vona-module-a-orm 5.0.83 → 5.0.84

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3001,10 +3001,9 @@ class BeanModelCache extends BeanModelCrud {
3001
3001
  const cache = this.cacheEntity.getInstance(table);
3002
3002
  let items = await cache.mget(ids, {
3003
3003
  mget: async ids => {
3004
- const items = await super._mget_original(table, ids, {
3004
+ return await super._mget_original(table, ids, {
3005
3005
  disableDeleted: true
3006
3006
  });
3007
- return items.map(item => item === undefined ? null : item);
3008
3007
  },
3009
3008
  db: this.db
3010
3009
  });
@@ -3331,14 +3330,13 @@ class BeanModelCache extends BeanModelCrud {
3331
3330
  const item = await cache.get(id, {
3332
3331
  get: async () => {
3333
3332
  // where: maybe contain aux key
3334
- const item = await super._get(table, where, {
3333
+ return await super._get(table, where, {
3335
3334
  disableDeleted: true
3336
3335
  });
3337
- return item === undefined ? null : item;
3338
3336
  },
3339
3337
  db: this.db
3340
3338
  });
3341
- if (!item || !this._checkIfEntityValidByDeleted(item, options)) return null;
3339
+ if (!item || !this._checkIfEntityValidByDeleted(item, options)) return undefined;
3342
3340
  return item;
3343
3341
  }
3344
3342
  __filterMGetColumns(items, columns) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-orm",
3
3
  "type": "module",
4
- "version": "5.0.83",
4
+ "version": "5.0.84",
5
5
  "title": "a-orm",
6
6
  "vonaModule": {
7
7
  "capabilities": {