Skip to content

Commit

Permalink
fix: missing imports for blob & multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jun 5, 2024
1 parent f4f8337 commit 36a8e66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/runtime/server/api/_hub/blob/delete-folder.post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { eventHandler } from 'h3'
import { eventHandler, readValidatedBody } from 'h3'
import { z } from 'zod'
import { hubBlob } from '../../../utils/blob'
import { requireNuxtHubAuthorization } from '../../../utils/auth'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createError, eventHandler } from 'h3'
import { createError, eventHandler, getValidatedRouterParams, readValidatedBody } from 'h3'
import { z } from 'zod'
import { hubBlob } from '../../../../utils/blob'
import { requireNuxtHubAuthorization } from '../../../../utils/auth'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createError, eventHandler, getValidatedQuery } from 'h3'
import { createError, eventHandler, getValidatedQuery, readValidatedBody } from 'h3'
import { z } from 'zod'
import { hubBlob } from '../../../../utils/blob'
import { requireNuxtHubAuthorization } from '../../../../utils/auth'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/utils/blob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { R2Bucket, ReadableStream, R2MultipartUpload } from '@cloudflare/wo
import { ofetch } from 'ofetch'
import mime from 'mime'
import type { H3Event } from 'h3'
import { setHeader, createError, readFormData } from 'h3'
import { setHeader, createError, readFormData, getValidatedQuery, getValidatedRouterParams, readValidatedBody } from 'h3'
import { defu } from 'defu'
import { randomUUID } from 'uncrypto'
import { parse } from 'pathe'
Expand Down

0 comments on commit 36a8e66

Please sign in to comment.