From ada8e5b831ea495854bb85efa497ea240547e141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 18 Apr 2024 01:43:20 +0200 Subject: [PATCH] fix: add missing import --- src/runtime/server/api/_hub/cache/[...key].delete.ts | 2 +- src/runtime/server/api/_hub/cache/batch-delete.post.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/server/api/_hub/cache/[...key].delete.ts b/src/runtime/server/api/_hub/cache/[...key].delete.ts index dbcee7f3..b126cacb 100644 --- a/src/runtime/server/api/_hub/cache/[...key].delete.ts +++ b/src/runtime/server/api/_hub/cache/[...key].delete.ts @@ -1,4 +1,4 @@ -import { eventHandler, getRouterParam, createError } from 'h3' +import { eventHandler, getRouterParam, createError, sendNoContent } from 'h3' import { requireNuxtHubAuthorization } from '../../../utils/auth' import { requireNuxtHubFeature } from '../../../utils/features' // @ts-expect-error useStorage not yet typed diff --git a/src/runtime/server/api/_hub/cache/batch-delete.post.ts b/src/runtime/server/api/_hub/cache/batch-delete.post.ts index 15a9607a..5990c0c5 100644 --- a/src/runtime/server/api/_hub/cache/batch-delete.post.ts +++ b/src/runtime/server/api/_hub/cache/batch-delete.post.ts @@ -1,4 +1,4 @@ -import { eventHandler, readValidatedBody } from 'h3' +import { eventHandler, readValidatedBody, sendNoContent } from 'h3' import { z } from 'zod' import { requireNuxtHubAuthorization } from '../../../utils/auth' import { requireNuxtHubFeature } from '../../../utils/features'