From 8cb7866c41bc38edafbfaf6260d6a2c150deb578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 5 Jun 2024 18:01:06 +0200 Subject: [PATCH] fix(blob): add last missing import --- src/runtime/server/api/_hub/blob/delete-folder.post.ts | 2 +- src/runtime/server/utils/blob.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/server/api/_hub/blob/delete-folder.post.ts b/src/runtime/server/api/_hub/blob/delete-folder.post.ts index 69fec834..ac7c935b 100644 --- a/src/runtime/server/api/_hub/blob/delete-folder.post.ts +++ b/src/runtime/server/api/_hub/blob/delete-folder.post.ts @@ -1,4 +1,4 @@ -import { eventHandler, readValidatedBody } from 'h3' +import { eventHandler, readValidatedBody, sendNoContent } from 'h3' import { z } from 'zod' import { hubBlob } from '../../../utils/blob' import { requireNuxtHubAuthorization } from '../../../utils/auth' diff --git a/src/runtime/server/utils/blob.ts b/src/runtime/server/utils/blob.ts index 7d676adf..ed622e5a 100644 --- a/src/runtime/server/utils/blob.ts +++ b/src/runtime/server/utils/blob.ts @@ -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, getValidatedQuery, getValidatedRouterParams, readValidatedBody } from 'h3' +import { setHeader, createError, readFormData, getValidatedQuery, getValidatedRouterParams, readValidatedBody, sendNoContent } from 'h3' import { defu } from 'defu' import { randomUUID } from 'uncrypto' import { parse } from 'pathe'