@dnax/core 0.30.5 → 0.30.6
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 +4 -3
- package/package.json +1 -1
package/app/hono.ts
CHANGED
|
@@ -421,13 +421,12 @@ function HonoInstance(): typeof app {
|
|
|
421
421
|
let allFiles = parseBody?.file;
|
|
422
422
|
for await (let file of allFiles) {
|
|
423
423
|
let d;
|
|
424
|
-
if (Array.isArray(data)) {
|
|
424
|
+
if (Array.isArray(data) && data.length) {
|
|
425
425
|
d = data[indexedData];
|
|
426
426
|
} else {
|
|
427
427
|
d = data;
|
|
428
428
|
}
|
|
429
429
|
let insertedFile = await drive.write(file.name, file);
|
|
430
|
-
|
|
431
430
|
insertedFiles.push({
|
|
432
431
|
...d,
|
|
433
432
|
_file: insertedFile,
|
|
@@ -469,7 +468,9 @@ function HonoInstance(): typeof app {
|
|
|
469
468
|
query: c.req.query,
|
|
470
469
|
});
|
|
471
470
|
if (useCache) {
|
|
472
|
-
let responseFromCache = await cache.get(
|
|
471
|
+
let responseFromCache = await cache.get({
|
|
472
|
+
key: keyCache,
|
|
473
|
+
});
|
|
473
474
|
if (responseFromCache) {
|
|
474
475
|
response = responseFromCache;
|
|
475
476
|
} else {
|