@dnax/core 0.6.2 → 0.6.4
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 +8 -2
- package/package.json +1 -1
package/app/hono.ts
CHANGED
|
@@ -289,7 +289,10 @@ function HonoInstance(): typeof app {
|
|
|
289
289
|
c.req?.raw?.headers.get("content-type") ==
|
|
290
290
|
"application/x-www-form-urlencoded"
|
|
291
291
|
) {
|
|
292
|
-
parseBody =
|
|
292
|
+
parseBody =
|
|
293
|
+
(await c?.req.parseBody({
|
|
294
|
+
all: true,
|
|
295
|
+
})) || {};
|
|
293
296
|
}
|
|
294
297
|
|
|
295
298
|
const body = await c?.req
|
|
@@ -378,7 +381,10 @@ function HonoInstance(): typeof app {
|
|
|
378
381
|
let insertedFiles = [];
|
|
379
382
|
for await (let file of parseBody?.file) {
|
|
380
383
|
let insertedFile = await drive.write(file.name, file);
|
|
381
|
-
insertedFiles.push(
|
|
384
|
+
insertedFiles.push({
|
|
385
|
+
...data,
|
|
386
|
+
_file: insertedFile,
|
|
387
|
+
});
|
|
382
388
|
}
|
|
383
389
|
response = await rest.insertMany(col?.slug, insertedFiles);
|
|
384
390
|
} else if (typeof parseBody?.file == "object") {
|