chore(server): fix type error

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-11-03 23:39:09 +08:00
parent 3a0c0393e0
commit ac15ba5be3
+2 -2
View File
@@ -46,7 +46,7 @@ export async function injectMetaHandler(
if (result) {
const parsedUrl = new URL(url, upstreamOrigin)
return await handler({
return (await handler({
params: result.params as Record<string, string>,
url: parsedUrl,
req,
@@ -61,7 +61,7 @@ export async function injectMetaHandler(
throwError(status, message) {
throw new MetaError(status, message)
},
})
})) as MetaTag[]
}
}