fix: t-005 a t-0029 correctif
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export default defineEventHandler(async () => {
|
||||
const token = process.env.DISCORD_BOT_TOKEN
|
||||
const channel = process.env.DISCORD_CHANNEL_ID
|
||||
export default defineEventHandler(async (event) => {
|
||||
const config = useRuntimeConfig(event)
|
||||
const token = config.discordBotToken
|
||||
const channel = config.discordChannelId
|
||||
|
||||
if (!token || !channel) {
|
||||
throw createError({
|
||||
|
||||
Reference in New Issue
Block a user