@dnax/core 0.70.5 → 0.70.7

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.
package/app/hono.ts CHANGED
@@ -578,7 +578,7 @@ function HonoInstance(): typeof app {
578
578
 
579
579
  // find
580
580
  if (action == "find") {
581
- if (col?.cache?.fetch && useCache) {
581
+ if (!col?.cache?.fetch && useCache) {
582
582
  // la fonctionnalité de cache n'est pas configuré
583
583
  return fn.error(`Cache features not configured`, 400);
584
584
  }
@@ -849,7 +849,7 @@ class useRest {
849
849
  }),
850
850
  params: params,
851
851
  });
852
- return cacheResult || [];
852
+ return resolve(cacheResult || []);
853
853
  }
854
854
 
855
855
  if (col?.hooks?.beforeOperation && useHook) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.70.5",
3
+ "version": "0.70.7",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},