1
0

fix: missed from commit 🤦‍♂️

This commit is contained in:
Daniel Roe 2022-11-27 18:44:19 +00:00
parent 494804fc1c
commit 76715d7cec
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import { stringifyQuery } from 'ufo'
import { HOST_DOMAIN, HOST_URL, getApp } from '~/server/shared'
import { HOST_URL, getApp } from '~/server/shared'
export default defineEventHandler(async (event) => {
const server = event.context.params.server
const app = await getApp(HOST_DOMAIN, server)
const app = await getApp(server)
if (!app) {
event.node.res.statusCode = 400

View File

@ -1,9 +1,9 @@
import { stringifyQuery } from 'vue-router'
import { HOST_DOMAIN, HOST_URL, getApp } from '~/server/shared'
import { HOST_URL, getApp } from '~/server/shared'
export default defineEventHandler(async (event) => {
const server = event.context.params.server
const app = await getApp(HOST_DOMAIN, server)
const app = await getApp(server)
if (!app) {
event.node.res.statusCode = 400