mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-13 20:39:58 +00:00
fix: explicitly set status code
This commit is contained in:
parent
6414f2a4e2
commit
0192d3eeb7
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {
|
||||||
const app = await getApp(HOST_DOMAIN, server)
|
const app = await getApp(HOST_DOMAIN, server)
|
||||||
|
|
||||||
if (!app) {
|
if (!app) {
|
||||||
setResponseStatus(400)
|
event.node.res.statusCode = 400
|
||||||
return `App not registered for server: ${server}`
|
return `App not registered for server: ${server}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {
|
||||||
const app = await getApp(HOST_DOMAIN, server)
|
const app = await getApp(HOST_DOMAIN, server)
|
||||||
|
|
||||||
if (!app) {
|
if (!app) {
|
||||||
setResponseStatus(400)
|
event.node.res.statusCode = 400
|
||||||
return `App not registered for server: ${server}`
|
return `App not registered for server: ${server}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue