@dnax/core 0.9.1 → 0.9.2
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 +5 -7
- package/package.json +1 -1
package/app/hono.ts
CHANGED
|
@@ -60,7 +60,7 @@ function HonoInstance(): typeof app {
|
|
|
60
60
|
action,
|
|
61
61
|
collection,
|
|
62
62
|
cleanDeep,
|
|
63
|
-
stringToBoolean(useCache, false),
|
|
63
|
+
useCache: stringToBoolean(useCache, false),
|
|
64
64
|
method: c.req.method,
|
|
65
65
|
url: c.req.url,
|
|
66
66
|
status: c.res.status,
|
|
@@ -307,12 +307,12 @@ function HonoInstance(): typeof app {
|
|
|
307
307
|
const service = getService(name, c.var["tenant-id"]);
|
|
308
308
|
const col = getCollection(collection, c.var["tenant-id"]);
|
|
309
309
|
const body = await c?.req
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
?.json()
|
|
311
|
+
.then((e) => e)
|
|
312
|
+
.catch((err) => null);
|
|
313
313
|
|
|
314
314
|
useCache = stringToBoolean(useCache, false);
|
|
315
|
-
if(body?.useCache) useCache = stringToBoolean(body.useCache, false);
|
|
315
|
+
if (body?.useCache) useCache = stringToBoolean(body.useCache, false);
|
|
316
316
|
|
|
317
317
|
if (
|
|
318
318
|
c.req.raw?.headers
|
|
@@ -327,8 +327,6 @@ function HonoInstance(): typeof app {
|
|
|
327
327
|
})) || {};
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
|
|
332
330
|
const rest = new useRest({
|
|
333
331
|
tenant_id: c.var["tenant-id"],
|
|
334
332
|
});
|