8000 fix: missing imports for blob & multipart · nuxt-hub/core@36a8e66 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 36a8e66

Browse files
committed
fix: missing imports for blob & multipart
1 parent f4f8337 commit 36a8e66

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/runtime/server/api/_hub/blob/delete-folder.post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { eventHandler } from 'h3'
1+
import { eventHandler, readValidatedBody } from 'h3'
22
import { z } from 'zod'
33
import { hubBlob } from '../../../utils/blob'
44
import { requireNuxtHubAuthorization } from '../../../utils/auth'

src/runtime/server/api/_hub/blob/multipart/[...pathname].post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createError, eventHandler } from 'h3'
1+
import { createError, eventHandler, getValidatedRouterParams, readValidatedBody } from 'h3'
22
import { z } from 'zod'
33
import { hubBlob } from '../../../../utils/blob'
44
import { requireNuxtHubAuthorization } from '../../../../utils/auth'

src/runtime/server/api/_hub/blob/multipart/complete.post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createError, eventHandler, getValidatedQuery } from 'h3'
1+
import { createError, eventHandler, getValidatedQuery, readValidatedBody } from 'h3'
22
import { z } from 'zod'
33
import { hubBlob } from '../../../../utils/blob'
44
import { requireNuxtHubAuthorization } from '../../../../utils/auth'

src/runtime/server/utils/blob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { R2Bucket, ReadableStream, R2MultipartUpload } from '@cloudflare/wo
44
import { ofetch } from 'ofetch'
55
import mime from 'mime'
66
import type { H3Event } from 'h3'
7-
import { setHeader, createError, readFormData } from 'h3'
7+
import { setHeader, createError, readFormData, getValidatedQuery, getValidatedRouterParams, readValidatedBody } from 'h3'
88
import { defu } from 'defu'
99
import { randomUUID } from 'uncrypto'
1010
import { parse } from 'pathe'

0 commit comments

Comments
 (0)
0